ysm
Explore posts from serversCDCloudflare Developers
•Created by ysm on 4/13/2023 in #pages-help
Does pages support Next.js rewrites?
Hi, @Better James .
This is now supported, right?
15 replies
CDCloudflare Developers
•Created by ysm on 5/11/2023 in #workers-help
Where can I find TypeScript type definitions of `@cloudflare/workers-types` pkg in Github?
I found here but it looks empty
https://github.com/cloudflare/workerd/blob/89199545cf23160ff30efd5ba331a933fc8310f1/npm/workers-types/package.json
4 replies
CDCloudflare Developers
•Created by ysm on 4/13/2023 in #pages-help
Does pages support Next.js rewrites?
Wow Thanks you for quick reply
15 replies
CDCloudflare Developers
•Created by ysm on 4/13/2023 in #pages-help
Does pages support Next.js rewrites?
Is there any thread or github issue or something I can follow for this update?
15 replies
CDCloudflare Developers
•Created by ysm on 4/13/2023 in #pages-help
Does pages support Next.js rewrites?
Thanks!
15 replies
CDCloudflare Developers
•Created by ysm on 4/13/2023 in #pages-help
Does pages support Next.js rewrites?
how about headers and redirects in next.config.js?
15 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
Thanks!
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
ok I see
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
the function
isProd
, isLocal
is trying to access environment variables
on first initialization33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
I'm initialize db connection in global scope like this:
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
yes
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
yea I mean.. I cannot push to store bc I cannot access
env
because any first Request comes yet33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
so on initial run (if any Request comes yet), I cannot access to
env
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
I cannot bind env variables to global scope when I'm using module syntax
because env variables only provide by wrangler (when arrive Request) through
env
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
for quick reply
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
Thank you
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
oh I see
33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
But I cannot bind any
Environment variables
in global scope when I'm using Module syntax33 replies
CDCloudflare Developers
•Created by ysm on 3/29/2023 in #workers-help
How to declare TypeScript types for service worker syntax?
I used to use
Module Syntax
but suddenly I decided to use Service Worker Syntax
because I want to use Environment Variables in globalThis
scope.33 replies