summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar EBits00 <97814750+EBits00@users.noreply.github.com> 2022-08-22 13:33:54 -0300
committerGravatar GitHub <noreply@github.com> 2022-08-22 12:33:54 -0400
commit8f20b188757c7f8c17097a1d0bb43b1bc556a43a (patch)
tree0ff3cf863cf0efc2c23ab64b84f98f1670965f84
parent8264f85f1d9c8578b2fdbd84b446500de0f8c22f (diff)
downloadastro-8f20b188757c7f8c17097a1d0bb43b1bc556a43a.tar.gz
astro-8f20b188757c7f8c17097a1d0bb43b1bc556a43a.tar.zst
astro-8f20b188757c7f8c17097a1d0bb43b1bc556a43a.zip
Updated Express code to serve assets (#4402)
Assets where not served so the style was not applied, fixed this by adding the line app.use(express.static('dist/client/'))
-rw-r--r--packages/integrations/node/README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/integrations/node/README.md b/packages/integrations/node/README.md
index 274352577..62f9ae179 100644
--- a/packages/integrations/node/README.md
+++ b/packages/integrations/node/README.md
@@ -57,6 +57,7 @@ import express from 'express';
import { handler as ssrHandler } from './dist/server/entry.mjs';
const app = express();
+app.use(express.static('dist/client/'))
app.use(ssrHandler);
app.listen(8080);