This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
Navigate to /packages/atom-nextjs
and host the package locally:
npm link
Then, navigate out, back into the root folder, and connect to the locally hosted package:
npm link atom-nextjs
Lastly, you can also restart your code editor as there is a common bug with code editors where it says that the package is not installed.
The following environment variables are used:
HASH_SALT="CONFIDENTIAL"
MONGO_DB_URI="CONFIDENTIAL"
ATOM_PROJECT_KEY="CONFIDENTIAL"
UPSTASH_REDIS_REST_URL="CONFIDENTIAL"
UPSTASH_REDIS_REST_TOKEN="CONFIDENTIAL"
# Can be either 'dev' or 'prod'
ENV="dev"