Hi,
Just to be specific. I have two questions.
-
when deploying nextjs on netilfy, will the api route using edge runtime becomes edge functions in netlify environment as well ?
-
how to access environmental variables if treated as edge function. will process.env still work or I have to use the netlify.env global variable. Is there any good example showing how ? Thank you ,
The below is one example i’m trying to use but failed to find Netlify.env under “netlify dev” testing .
export const config = {
runtime: 'experimental-edge'
};
export default () =>
new Response(JSON.stringify(Netlify.env.toObject(), null, 2));