-
Notifications
You must be signed in to change notification settings - Fork 9
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
Navigation #2
Comments
Yup, those are both viable solutions. You can clone
You can |
Thanks! This is great! After npm install and building I'm getting this error:
[freshie] Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
…---- On Tue, 17 Nov 2020 14:49:55 -0500 Luke Edwards <notifications@github.com> wrote ----
Yup, those are both viable solutions.
I have a new project in the open now that does this for you automatically (still WIP) so I'm not sure if it's worth bringing over the changes to this demo repo.
You can clone https://github.com/lukeed/freshie/tree/master/examples/svelte but replace @freshie/ssr.node with @freshie/ssr.worker https://github.com/lukeed/freshie/blob/master/examples/svelte/package.json#L8.
Replace all workspace: versions with real versions, though
You can freshie build, and then upload the build/client to a GCP bucket (or wherever) and then upload build/server as a CF Worker.
—
You are receiving this because you authored the thread.
Reply to this email directly, #2 (comment), or https://github.com/notifications/unsubscribe-auth/ABCQBRLRDMV3XIDSX44ZZYLSQLHWHANCNFSM4TYR6FDA.
|
Oh, sorry 🙈 I linked you to old example. Since you're likely using styles, you need to install |
Okay! That works. Last question... Where do you put the CDN information for the bucket? |
Questions are fine – no docs after all 😆 You create a So if your CDN is going to be at // freshie.config.js
exports.publicPath = function (config, context) {
return context.isProd ? 'https://static.example.com/' : '/';
} |
Works great! Wow, this is so simple to use! Nice work! |
Closing since I think you've migrated over to |
Those are found in your You can add the |
@Sandman18 Upgrading to |
Is this set up possible with navigation? Would you use something like navaid or would you redirect each /page through the cloudflare worker and point it to the corresponding folder on the bucket?
Thanks!
The text was updated successfully, but these errors were encountered: