-
Notifications
You must be signed in to change notification settings - Fork 52
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
Documentation on how to deploy static site #70
Comments
Wrangler sites creates a worker script that uses cfworker doesn't generate a site worker script so you'd need to create one using the example above. Assuming you created a worker script matching the example and the script was at
I've not tried this to be honest, I don't use
|
Thank you, this worked! Well, very nearly. With your direction, here's what I did for others to reference.
This resulted in deploying my static site correctly to my dev domain on Cloudflare workers. 🎉 However, this little deploy button was not checked, requiring me to manually check it in order to fully deploy and visit my site. This was during the first deploy only. It remains in a checked state for subsequent deploys. I'm going to look through the codebase to see if I can locate where this would happen (and if it's possible to automate this), but would take any direction if you have it. Thanks! |
@duffn nice work! Looks like cfworker is missing this step: (posting Probably goes here in the deploy code, apologies this area isn't very tidy 😬 |
First, thanks for these utilities.
I'm having difficulty figuring out how to deploy a simple static site. What should I be passing into the
--site
argument? I have my static site build locally and in apublic
directory in the cwd.results in
I'm happy to open a PR for the README if I can figure out how to properly pass in my static site directory.
The text was updated successfully, but these errors were encountered: