Template to make your Nextjs app Xnode/Nix compatible.
- Replace all instances of "xnode-nextjs-template" with the name of your project. This should be unique, as no apps with the same name can be run on a single Xnode.
- Build your Nextjs app
- Once your app is ready for deployment and runs using
nix run
, push to GitHub and copy your GitHub url (e.g. https://github.com/Openmesh-Network/xnode-nextjs-template). - Go the the App Store in Xnode Studio and go to the advanced tab.
- Paste your GitHub url and enter the name of the project you choose during step 1.
- Hit deploy and wait for your app to be ready.
- Copy the deploy link and replace the one click deployment url in the next section. (to allow others to easily deploy your application)
nix run
npm i
npm run dev
npm run build
npm run start