Site Name : accountability-bunnies
12:46:09 PM: Netlify Build
12:46:09 PM: ────────────────────────────────────────────────────────────────
12:46:09 PM:
12:46:09 PM: ❯ Version
12:46:09 PM: @netlify/build 29.56.1
12:46:09 PM:
12:46:09 PM: ❯ Flags
12:46:09 PM: accountId: 5f91e595868f900cf03b7fe5
12:46:09 PM: baseRelDir: true
12:46:09 PM: buildId: 675b4b6774efda00089b703d
12:46:09 PM: deployId: 675b4b6774efda00089b703f
12:46:09 PM:
12:46:09 PM: ❯ Current directory
12:46:09 PM: /opt/build/repo
12:46:09 PM:
12:46:09 PM: ❯ Config file
12:46:09 PM: No config file was defined: using default values.
12:46:09 PM:
12:46:09 PM: ❯ Context
12:46:09 PM: production
12:46:09 PM:
12:46:09 PM: Build command from Netlify app
12:46:09 PM: ────────────────────────────────────────────────────────────────
12:46:09 PM:
12:46:09 PM: $ npm run build
12:46:10 PM: > accountabilitybunnies@0.0.1 build
12:46:10 PM: > astro check && astro build --remote
12:46:11 PM: 20:46:11 [content] Syncing content
12:46:11 PM: 20:46:11 [content] Astro version changed
12:46:11 PM: 20:46:11 [content] Clearing content store
12:46:11 PM: 20:46:11 [content] Synced content
12:46:11 PM: 20:46:11 [types] Generated 84ms
12:46:11 PM: 20:46:11 [check] Getting diagnostics for Astro files in /opt/build/repo...
12:46:13 PM: Result (18 files):
12:46:13 PM: - 0 errors
12:46:13 PM: - 0 warnings
12:46:13 PM: - 0 hints
12:46:13 PM:
12:46:14 PM: ▶ ASTRO_STUDIO_APP_TOKEN required
12:46:14 PM: To authenticate with Astro Studio add the token to your CI's environment variables.
12:46:14 PM:
12:46:14 PM: "build.command" failed
12:46:14 PM: ────────────────────────────────────────────────────────────────
12:46:14 PM:
12:46:14 PM: Error message
12:46:14 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
12:46:14 PM:
12:46:14 PM: Error location
12:46:14 PM: In Build command from Netlify app:
12:46:14 PM: npm run build
12:46:14 PM:
12:46:14 PM: Resolved config
12:46:14 PM: build:
12:46:14 PM: command: npm run build
12:46:14 PM: commandOrigin: ui
12:46:14 PM: environment:
12:46:14 PM: - ASTRO_DB_APP_TOKEN
12:46:14 PM: publish: /opt/build/repo/dist
12:46:14 PM: publishOrigin: ui
12:46:14 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:46:14 PM: Failing build: Failed to build site
12:46:15 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:46:15 PM: Finished processing build request in 29.743s
The astro docs state to use ASTRO_DB_APP_TOKEN instead of ASTRO_STUDIO_APP_TOKEN.
I have generated new and updated the variables and secrets in github actions and in the .env file of the repo to use ASTRO_DB_APP_TOKEN.
Not sure why it is asking for an ASTRO_STUDIO_APP_TOKEN.
BTW, I am no longer using Astro studio as the db. I migrated to Turso.
Which is why its odd that it still asks for an Astro DB app token. I did not see where in my code such a request is being made.