Skip to content
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

Cannot deploy to Cloudflare Workers Assets #550

Open
austinm911 opened this issue Nov 14, 2024 · 0 comments
Open

Cannot deploy to Cloudflare Workers Assets #550

austinm911 opened this issue Nov 14, 2024 · 0 comments

Comments

@austinm911
Copy link

https://developers.cloudflare.com/workers/frameworks/framework-guides/astro/

If you follow along the example guide, create a wrangler.toml and try to deploy, I'm getting the error below. Not sure exactly where this is happening.

❯ nr deploy
$ astro build && wrangler pages deploy
Cannot read properties of undefined (reading 'startsWith')
  Location:
    /Users/am/Coding/example-app/node_modules/@astrojs/internal-helpers/dist/path.js:17:15
  Stack trace:
    at removeLeadingForwardSlash (file:///Users/am/Coding/example-app/node_modules/@astrojs/internal-helpers/dist/path.js:17:15)
    at injectImageEndpoint (file:///Users/am/Coding/example-app/node_modules/astro/dist/assets/endpoint/config.js:8:24)
    at async AstroBuilder.run (file:///Users/am/Coding/example-app/node_modules/astro/dist/core/build/index.js:181:23)
    at async build (file:///Users/am/Coding/example-app/node_modules/astro/dist/cli/build/index.js:29:3)
    at async cli (file:///Users/am/Coding/example-app/node_modules/astro/dist/cli/index.js:175:5)
error: script "deploy" exited with code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant