Sessional
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
I guess if you are SSR it probably isn't.
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
you probably deploy the
build
directory and then likely route satic assets under /public/**
but that will depend on what the URLs to the resources look like... Is the home page under public
too?20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
Okay, so I think you have two options, you can explore the pages functions and use routes to reroute static assets.
The naive way of that is using the
functions
folder. The other option is deploy static assets and the functions as workers. I'd probably choose pages functions personally since it covers both cases and they are one deployable unit.20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
I've never heard of remix so I'm not really sure what it does 😛
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
Not if you are doing static assets?
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
So one other thing that might be tripping you up is the lingo...
workers = api endpoints to run code
pages = static assets
pages functions = fancy way of deploying pages + workers
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
Heres the pages project create link: https://developers.cloudflare.com/workers/wrangler/commands/#project-create
20 replies
CDCloudflare Developers
•Created by Willo on 7/21/2023 in #pages-discussions
Hi everyone we re exploring deploying
For your mono repo you'd want to be using the wrangler pages upload command. If you aren't seeing a pages project for it, you can also use wrangler to create it, but I guess you'd have to create it before you can upload unless you let it do more magic for you.. https://developers.cloudflare.com/workers/wrangler/commands/#deploy-1
20 replies