Skip to content
← Back to Community
Nextjs Typescript Template
Profile icon
h
has Hacker Plan
ApoorvSingal

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.

Voters
Profile icon
Vandesm14
Profile icon
Highwayman
Profile icon
LOLInteresting
Profile icon
Lord_Poseidon
Profile icon
CSharpIsGud
Profile icon
ApoorvSingal