mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Add integrations anchor and preliminary framework integrations to docs
This commit is contained in:
37
docs/integrations/frameworks/nextjs.mdx
Normal file
37
docs/integrations/frameworks/nextjs.mdx
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
title: "Next.js"
|
||||
---
|
||||
|
||||
Prerequisite: [Install the CLI](/cli/overview)
|
||||
|
||||
## Initialize Infisical for your [Next.js](https://nextjs.org)
|
||||
|
||||
```bash
|
||||
# move to your Next.js app
|
||||
cd /path/to/project
|
||||
|
||||
# initialize infisical
|
||||
infisical init
|
||||
```
|
||||
|
||||
## Modify the start script in your `package.json`
|
||||
|
||||
```json
|
||||
...
|
||||
"scripts": {
|
||||
"dev": "infisical run -- next dev",
|
||||
"build": "infisical run -- next build",
|
||||
"start": "infisical run -- next start"
|
||||
}
|
||||
...
|
||||
```
|
||||
|
||||
## Start your server with environment variables injected
|
||||
|
||||
```bash
|
||||
yarn run dev
|
||||
|
||||
# or
|
||||
|
||||
npm run dev
|
||||
```
|
||||
Reference in New Issue
Block a user