learnwithjason / astro-frontend-masters

Astro workshop demo for Frontend Masters
63 stars 97 forks source link

astro config`hybridOutput` flag #1

Open kal93 opened 1 year ago

kal93 commented 1 year ago

astro build throws error -

1:49:49 PM: $ npm run build
1:49:49 PM: > astro-frontend-masters@0.0.1 build
1:49:49 PM: > astro build
1:49:50 PM: 08:19:50 AM [astro] Unable to load /opt/build/repo/astro.config.mjs
1:49:50 PM: [config] Astro found issue(s) with your configuration:
1:49:50 PM:   ! experimental  Invalid experimental key: `hybridOutput`.
1:49:50 PM: Make sure the spelling is correct, and that your Astro version supports this experiment.
1:49:50 PM: See https://docs.astro.build/en/reference/configuration-reference/#experimental-flags for more information..
1:49:50 PM: ​
1:49:50 PM: (build.command completed in 1.1s)
1:49:50 PM: ​
1:49:52 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
kal93 commented 1 year ago

Looks like experimental flag hybridOutput is no longer needed for hybrid rendering. Removing it seems to have worked and newsletter still works with javascript disabled.

https://docs.astro.build/en/reference/configuration-reference/#experimental-flags