Nextjs Typescript Template
Setting up typescript is always a pain, especially when different parts of your app require different typescript configurations.
Here is a simple nextjs template with pre-configured typescript for both server and client (jsx) files. The server files go in server
dir and rest all is same as an ordinary nextjs app. Put NODE_ENV="production"
or NODE_ENV="development"
in .env to run the app in production or development mode respectively.