How to access the KV storage with this worker from the next project.
How to access the KV storage with this worker from the next project.
_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!


wrangler pages dev. If you are using next dev, then Bindings like KV will not be populated.wrangler.tomlconst 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,
}