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

Using the "base" property causes build errors with Cloudflare adapter #434

Open
1 task
Meai opened this issue Nov 6, 2024 · 0 comments
Open
1 task

Using the "base" property causes build errors with Cloudflare adapter #434

Meai opened this issue Nov 6, 2024 · 0 comments

Comments

@Meai
Copy link

Meai commented Nov 6, 2024

Astro Info

Astro                    v4.16.9
Node                     v20.16.0
System                   Windows (x64)
Package Manager          npm
Output                   server
Adapter                  @astrojs/cloudflare
Integrations             @astrojs/react

Describe the Bug

Run npm run build and wait for the full build in the given https://stackblitz.com/edit/github-3k6n4e?file=astro.config.mjs to see the errors.

Errors:

07:34:56
 finalizing server assets

07:34:56 [build] Rearranging server assets...
07:34:56 [ERROR] [@astrojs/cloudflare] There was an error moving _headers to the root of the output directory.
07:34:56 [ERROR] [@astrojs/cloudflare] There was an error moving _redirects to the root of the output directory.
07:34:56 [ERROR] [@astrojs/cloudflare] There was an error moving _routes.json to the root of the output directory.
07:34:56 [build] Server built in 1.07s
07:34:56 [build] Complete!

According to this comment these files aren't even supported anyway?

What's the expected result?

No errors just like when working with astro dev or when I don't use a base path

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-3k6n4e?file=astro.config.mjs

Participation

  • I am willing to submit a pull request for this issue.
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