"missing app token" when building with --remote #10617
Labels
- P5: urgent
Fix build-breaking bugs affecting most users, should be released ASAP (priority)
pkg: db
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I am logged into Astro Studio, linked, and able to work with production data using the --remote flag in dev mode. When attempting to build with the --remote flag, I get the following error (was not happening with astro db 0.8.8, but does happen in 0.9.0):
Cannot create a remote client: missing app token.
Stack trace:
at createRemoteDatabaseClient (file:///Users/chris.pennington/cip/astro-course-files/astro-course-files/node_modules/@astrojs/db/dist/runtime/db-client.js:32:11)
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async generatePage (file:///Users/chris.pennington/cip/astro-course-files/astro-course-files/node_modules/astro/dist/core/build/generate.js:204:22)
at async staticBuild (file:///Users/chris.pennington/cip/astro-course-files/astro-course-files/node_modules/astro/dist/core/build/static-build.js:96:7)
at async AstroBuilder.run (file:///Users/chris.pennington/cip/astro-course-files/astro-course-files/node_modules/astro/dist/core/build/index.js:165:7)
What's the expected result?
astro build --remote
should build using the remote data if I’m logged in and linked to an Astro studio project.
(the minimal repo can't really be linked to Astro studio, but short of logging in and linking, everything else is the same as my local files)
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-6icpvd
Participation
The text was updated successfully, but these errors were encountered: