Best practices on using Next.js in a TypeScript Multi Zones Application
Turboreponext-intl .yarn@4.3.1turbo.json file in your Workspace's root directory turboapp-routertailwindcsseslint V9hyperse next-env for auto customized environment over next.jszod@svgr/webpack allow directly import .svg as componentvitest for unitest also support tspath aliashusky for commit hooklint-staged for commit hookgit czchangesetscommitlintcode-inspector-plugin([shift + ⌥option]) to resolve page/component's code is located.yarn devyarn buildthe paths tsconfig.json also can be resolved for apps/*, we should avoid to use ts paths alias to write code for mono-module like core
utils we can use aliascore we should not use aliasIf you are looking for single repo next.js best practices starter please see below link
https://github.com/hyperse-io/next.js-multi-zone-starter
Turborepo can use a technique known as Remote Caching to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd my-turborepo npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:
npx turbo link
Learn more about the power of Turborepo: