-
Notifications
You must be signed in to change notification settings - Fork 148
Astro adapter #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Astro adapter #297
Conversation
9b98f08
to
2d733a1
Compare
const outputBundle: OutputBundleConfig = { | ||
version: "v1", | ||
runConfig: { | ||
runCommand: `node dist/server/entry.mjs`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This path needs to respect the outDir
option in astro.config. I think that can be done with the { dir }
argument that is passed into this astro:build:done
callback
setAdapter(getAdapter(_options)); | ||
}, | ||
"astro:build:done": async () => { | ||
await fs.mkdir("./.apphosting"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
await fs.mkdir("./.apphosting"); | |
await fs.mkdir("./.apphosting", { | |
// Don't throw if directory already exists. Important when debugging the build locally | |
recursive: true | |
}); |
Adds support for Astro in Firebase App Hosting.
To use follow these instructions:
npx astro add @apphosting/astro-adapter