Skip to content

contentstack-launch-examples/monorepo-with-edge-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turborepo starter with npm

This is an official starter Turborepo.

What's inside?

This Turborepo uses npm as a packages manager. It includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • eleventy-app: an Eleventy site
  • static-demo: a static site
  • ui: a stub React component library shared by both web and docs applications
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Setup

cd turborepo-npm-demo
npm install

Build

To build all apps and packages, run the following command:

npm run build

To build only a specific app(Eg:- 'web'), run the following command:

npm run build -- --filter web

Build directory path for the above would be:

./apps/web/.next

Develop

To develop all apps and packages, run the following command:

npm run dev

Edge Functions

User can host an edge function by adding the functions/[proxy].edge.js file at the root. To understand different use cases of edge function visit Launch Edge Function

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •