nora
05/08/2023, 8:01 PMSkye
05/08/2023, 8:04 PMCF_PAGES_COMMIT_SHA
?nora
05/08/2023, 8:08 PMnora
05/08/2023, 8:09 PMWaldo
05/09/2023, 5:14 PMJames
05/09/2023, 5:16 PMenv.ASSETS.fetch
a specific file, but no arbitrary listing.Waldo
05/09/2023, 5:18 PMBy_Moglii
05/09/2023, 8:33 PMDani Foldi
05/09/2023, 8:34 PMNipsuli
05/10/2023, 5:52 AMError: Failed to publish your Function. Got error: Error: Script startup exceeded CPU time limit
our main app is Remix app. Like what all happens during the startup? Like could I just achieve same setup with some local test? I already tried profiling importing the compiled functions handler. Is this the correct way? Would make me sad if we'd have to migrate our application away from the best platform I know of đBryceWray
05/11/2023, 2:54 AM_middleware.js
stuff for the first time with CF Pages, in an attempt to use it instead of an existing CF Worker. Works perfectly on the pages.dev
version â but, on the custom-domain version from that pages.dev
, only the HTML files are affected even though itâs for all routes and files. Is there something special I have to do in the domainâs DNS, or elsewhere, to make the middleware work properly on the custom domain, too? (And I did remove the custom domainâs routes from the Worker for the test, so the Worker shouldnât have been interfering.)
The pages.dev
domain = static-site-2to.pages.dev
The custom domain = brycewray.com
**Note**: I have had to add the custom domain routes back to the Worker and take the _middleware.js
file out of the project in order to regain the previous functionality, until I can learn why the middleware file doesnât work on the custom domain. Let me know (during U.S. daytime hours, please) if you want me to restore the test setup.sideshot
05/13/2023, 11:23 PMroutes.json
is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.Walshy | Pages
05/14/2023, 12:00 AMsideshot
05/14/2023, 2:45 AMWalshy | Pages
05/14/2023, 2:46 AMWalshy | Pages
05/14/2023, 2:46 AMWalshy | Pages
05/14/2023, 2:46 AMsideshot
05/14/2023, 2:55 AMsideshot
05/14/2023, 2:55 AMsideshot
05/14/2023, 3:06 AMadapter: adapter(),
I found this link with the fix
https://kit.svelte.dev/docs/adapter-cloudflare#usage
adapter: adapter({
// See below for an explanation of these options
routes: {
include: ['/api/*'],
exclude: []
}
})
Hope this helps others.Evan
05/18/2023, 10:14 AMWalshy | Pages
05/18/2023, 10:16 AMmodichutiyathaaurhai
05/18/2023, 11:09 AMWalshy | Pages
05/18/2023, 11:13 AMEvan
05/18/2023, 12:16 PMmodichutiyathaaurhai
05/18/2023, 12:23 PMmodichutiyathaaurhai
05/18/2023, 12:23 PMjorjik
05/18/2023, 6:56 PMCompiling worker to "/var/folders/fr/_pqhdcfs1r701w_r80w78tw80000gn/T/functionsWorker-0.899414644570004.mjs"...
Ⲡ[WARNING] No routes found when building Functions directory: ./functions - skipping
No functions. Shimming...
â
ď¸ wrangler 3.0.0
guys I can't understand why wrangler pages dev _site
can't see the functions folderSkye
05/18/2023, 6:57 PM