What about workers what's the use case of it in Next js application, sorry If it seems basic questio
What about workers what's the use case of it in Next js application, sorry If it seems basic questions but as I said I'm totally new to cloudflare
@cloudflare/next-on-pages, it generates a worker that is deployed along with the static assets for your Pages project. That worker handles all incoming requests to your Next.js Pages projectnext server
wrangler.toml so that wrangler doesn’t pick it up
next dev you can use_redirects file, but that changed nothing (no redirect). I have tried to put the file in my root-directory and of course (and initially) to my public directory.https://nicokempe.eu/* https://www.nicokempe.eu/:splat 301!
const redirects = async () => {
return [
{
source: '/:path*',
destination: 'https://www.nicokempe.eu/:path*',
permanent: true,
},
]
}
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'ts', 'tsx', 'mdx'],
images: {
unoptimized: true
},
redirects,
}