You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to build astro 5.1.2 with output: 'static' causes this error:
$ npx sst deploy --stage production
SST 3.4.50 ready!
➜ App: astro-sst-route-order
Stage: production
~ Deploy
> [email protected] build /home/ethan/temp/astro-sst-route-order
> astro build
16:46:12 [content] Syncing content
16:46:12 [content] Astro config changed
16:46:12 [content] Clearing content store
16:46:12 [content] Synced content
16:46:12 [types] Generated 19ms
16:46:12 [build] output: "server"
16:46:12 [build] directory: /home/ethan/temp/astro-sst-route-order/dist/
16:46:12 [build] adapter: astro-sst
16:46:12 [build] Collecting build info...
16:46:12 [build] ✓ Completed in 25ms.
16:46:12 [build] Building server entrypoints...
ELIFECYCLE Command failed with exit code 1.
16:46:12 [ERROR] [config] The adapter astro-sst does not currently support the feature "sharp". Your project may not build correctly.
16:46:12 [ERROR] [vite] x Build failed in 41ms
[vite:build-import-analysis] [plugin vite:build-import-analysis] @astrojs-ssr-adapter (1:14): Failed to parse source for import analysis because the content contains invalid JS syntax. If you are using JSX, make sure to name the file with the .jsx or .tsx extension.
file: @astrojs-ssr-adapter:1:14
1: export * from undefined;
^
Location:
@astrojs-ssr-adapter:1:14
Stack trace:
at getRollupError (file:///home/ethan/temp/astro-sst-route-order/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/parseAst.js:396:41)
at Object.error (file:///home/ethan/temp/astro-sst-route-order/node_modules/.pnpm/[email protected]/node_modules/rollup/dist/es/shared/node-entry.js:20689:20)
at Object.transform (file:///home/ethan/temp/astro-sst-route-order/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-BJP6rrE_.js:50088:14)
| Error MyWeb sst:aws:Astro → MyWebBuild sst:Run
| command exited with code 1
✕ Failed
MyWeb sst:aws:Astro → MyWebBuild sst:Run
command exited with code 1
There was some prior work getting hybrid rendering to work on this PR: sst/sst#3363
The text was updated successfully, but these errors were encountered:
Astro recently changed the config so that
output: 'static'
andoutput: 'hybrid'
now mean the same thing.https://astro.build/blog/astro-5/#simplified-prerendering
Trying to build astro 5.1.2 with
output: 'static'
causes this error:There was some prior work getting hybrid rendering to work on this PR:
sst/sst#3363
The text was updated successfully, but these errors were encountered: