4 ms·
You can use a v1 folder for your v1 functions. The server identifies functions by path and name of the action. Similar to a url. So like a url if you want a new
by bottlepalm 3y ago
You can use a v1 folder for your v1 functions. The server identifies functions by path and name of the action. Similar to a url. So like a url if you want a new one, you'd create actionNew, and if you move the location of the function it would break old versions without a redirect.
- spion 3y agoIs this documented anywhere?
- bottlepalm 3y agoNot sure. I just read the code. https://github.com/vercel/next.js/blob/ffdfd33251165d8b2f092568c8e4e5f08c71a636/packages/next/src/build/webpack/loaders/utils.ts#L48 https://github.com/vercel/next.js/blob/ffdfd33251165d8b2f092...