Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .env.sample

This file was deleted.

7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# logs
logs/
*.log

# backups
_backup_*/
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@awesome.me:registry=https://npm.fontawesome.com/
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=B92EF01D-F140-4E0D-81F0-5DE5026EC013
//npm.pkg.github.com/:_authToken=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
47 changes: 20 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,29 @@
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Red Panda Resort

## Getting Started
#### Setup .env
In your destination stack, navigate to Settings > Tokens > + Delivery Token

First, run the development server:
Select `main` branch and the `preview` enviornment. Make sure 'Create Preview Token' is enabled. Click 'Generate Token' and copy tokens into `.env`. This is what your final `.env` should look like:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```ts
CONTENTSTACK_API_KEY='YOUR_API_KEY'
CONTENTSTACK_DELIVERY_TOKEN='YOUR_DELIVERY_TOKEN'
CONTENTSTACK_ENVIRONMENT='preview'
CONTENTSTACK_PREVIEW_TOKEN='YOUR_PREVIEW_TOKEN'
CONTENTSTACK_PERSONALIZATION="YOUR_PERSONALIZE_PROJECT_UID"
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.

## Learn More

To learn more about Next.js, take a look at the following resources:
#### Install Packages and Run Locally
First, install all npm packages by running:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
```bash
npm i
```

## Deploy on Vercel
Next, run the app locally:

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
```bash
npm run dev
```

Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
4 changes: 4 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const nextConfig: NextConfig = {
LYTICS_TAG: process.env.LYTICS_TAG,
LIVE_PREVIEW_ENABLED: process.env.LIVE_PREVIEW_ENABLED,
HOSTING: process.env.HOSTING,
CONTENTSTACK_AUTOMATIONS_API_URL: process.env.CONTENTSTACK_AUTOMATIONS_API_URL,
LYTICS_API_KEY: process.env.LYTICS_API_KEY,
LYTICS_COLLECTION_ID: process.env.LYTICS_COLLECTION_ID,
CONTENTSTACK_TERM: process.env.CONTENTSTACK_TERM,
}
};

Expand Down
Loading