Migrating to v1
Last updated on
In v1 we are dropping support for the /pages
folder and will only be working with the /app
directory in Next.js. The migration is quite simple.
Start by upgrading Outstatic.
Then, remove the outstatic
and api/outstatic
folders from your /pages
directory.
Next, you'll need to add two files to your /app
folder:
/app/outstatic/[[...ost]]/page.tsx
And /app/api/outstatic/[[...ost]]/route.ts
That's it. Start your dev server and you are good to go!