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

Can‘t be deployed to cloudflare? #149

Closed
abcpeak opened this issue Mar 15, 2023 · 3 comments
Closed

Can‘t be deployed to cloudflare? #149

abcpeak opened this issue Mar 15, 2023 · 3 comments

Comments

@abcpeak
Copy link

abcpeak commented Mar 15, 2023

I deploye it to cloudflare,through it display sucss , I can’t open the site. I tried 3 times and don't know why...

Success: Finished cloning repository files
No build command specified. Skipping build step.
Note: No functions dir at /functions found. Skipping.
Validating asset output directory
Deploying your site to Cloudflare's global network...
 Uploading... (99/99)

✨ Success! Uploaded 0 files (99 already uploaded) (0.42 sec)

✨ Upload complete!
Success: Assets published!
Success: Your site was deployed!
Deploying your site to Cloudflare's global network...
 Uploading... (99/99)

✨ Success! Uploaded 0 files (99 already uploaded) (0.42 sec)

✨ Upload complete!
@prototypa
Copy link
Contributor

Hello @abcpeak

This theme generates a static build, not server or serverless. That's why it doesn't work for you.
In case you need to adjust the theme to server or serverless you would have to make several changes on your own.

Thanks

@vtisnado
Copy link

I was able to deploy to Cloudflare Pages, just choose AstroJS in the framework preset and add the build command: npm run build. I'm using Bun, so that's why I have bun run build in the framework preset.

Also make sure to update AstroJS to the latest version.

Screenshot 2024-01-23 at 11 29 54 AM

@abcpeak
Copy link
Author

abcpeak commented Jan 23, 2024

I was able to deploy to Cloudflare Pages, just choose AstroJS in the framework preset and add the build command: npm run build. I'm using Bun, so that's why I have bun run build in the framework preset.

Also make sure to update AstroJS to the latest version.

Screenshot 2024-01-23 at 11 29 54 AM

thank you

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

3 participants