DebianArch
DebianArch
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
I opted for all of the files it mentioned and that didn't affect anything - I'll just make a script which moves the API folder out of the current folder since "@/" resolves to "../" and "./*"
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
btw the api folder isn't in the pages/ and app/ folder that's where nextjs determines something is route
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
Nextjs isn't the problem - the build nextjs creates is fine also says so in the CLI that vercel completed successfully and I can't delete the directory because it has types that my nextjs build needs
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
putting the api folder out of the directory that the '@cloudflare/next-on-pages@1' is ran fixes it, but hoping to keep them in the same place
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
No description
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
@5927 so is there a way to make 'next-on-pages' ignore the /api folder on deployment
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
I even added the folder under excludes - the issue is cloudflare pages thinks the api folder is a route when it isn't. I know for sure that this is the cause because I removed all SSR routes and all imports of the API directory. The vercel part of the next-on-pages script did it's job, but the cloudflare page build part didn't
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
i have the same directory structure as you, but my /api folder is a cloudflare worker that has types my nextjs needs to see
16 replies
CDCloudflare Developers
Created by noahdelaweb on 8/17/2023 in #general-help
Failed to produce a Cloudflare Pages build from the project.
same did you fix it ?
16 replies
CDCloudflare Developers
Created by DebianArch on 8/19/2023 in #general-help
Accessing cloudflare env without fetch
example of what I want to end up doing, but hopefully not in the fetch function: const privateKey = await jose.importPKCS8(PRIVATE_KEY, alg) const publicKey = await jose.importSPKI(PUBLIC_KEY, alg)
2 replies