summaryrefslogtreecommitdiff
path: root/packages/integrations/node/src/index.ts
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@skypack.dev> 2023-11-28 08:46:26 -0500
committerGravatar GitHub <noreply@github.com> 2023-11-28 08:46:26 -0500
commit8f1d509574f5ee5d77816a13d89ce452dce403ff (patch)
tree56bfd6f61b019bc1cb9e49798cae21af35dae5a3 /packages/integrations/node/src/index.ts
parentd90714fc3dd7c3eab0a6b29319b0b666bb04b678 (diff)
downloadastro-8f1d509574f5ee5d77816a13d89ce452dce403ff.tar.gz
astro-8f1d509574f5ee5d77816a13d89ce452dce403ff.tar.zst
astro-8f1d509574f5ee5d77816a13d89ce452dce403ff.zip
Support immutable cache headers for _astro assets (#9125)
* Support immutable cache headers for _astro assets * Update .changeset/twelve-fishes-fail.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Update packages/integrations/node/src/http-server.ts * Update expected max-age * Add teh docs * Update .changeset/twelve-fishes-fail.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/integrations/node/README.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Diffstat (limited to 'packages/integrations/node/src/index.ts')
-rw-r--r--packages/integrations/node/src/index.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/integrations/node/src/index.ts b/packages/integrations/node/src/index.ts
index 1f3707949..bac5c25ef 100644
--- a/packages/integrations/node/src/index.ts
+++ b/packages/integrations/node/src/index.ts
@@ -6,7 +6,7 @@ export function getAdapter(options: Options): AstroAdapter {
name: '@astrojs/node',
serverEntrypoint: '@astrojs/node/server.js',
previewEntrypoint: '@astrojs/node/preview.js',
- exports: ['handler', 'startServer'],
+ exports: ['handler', 'startServer', 'options'],
args: options,
supportedAstroFeatures: {
hybridOutput: 'stable',
@@ -49,6 +49,7 @@ export default function createIntegration(userOptions: UserOptions): AstroIntegr
server: config.build.server?.toString(),
host: config.server.host,
port: config.server.port,
+ assets: config.build.assets,
};
setAdapter(getAdapter(_options));