chore: add a verified Bun devcontainer (#520)
* add devcontainer setup and change default port to 3002 * fix(devcontainer): enforce frozen install --------- Co-authored-by: victor <victor@elalemanyo.de>
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {
|
||||||
|
"version": "1.3.8",
|
||||||
|
"resolved": "ghcr.io/devcontainers/features/git@sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2",
|
||||||
|
"integrity": "sha256:fd75977de13a9979000e0e78baf949adb0ca71d2398995fa22e0a36d7e7e7fe2"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {
|
||||||
|
"version": "1.1.0",
|
||||||
|
"resolved": "ghcr.io/devcontainers/features/github-cli@sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671",
|
||||||
|
"integrity": "sha256:d22f50b70ed75339b4eed1ba9ecde3a1791f90e88d37936517e3bace0bbad671"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "Pascal Editor",
|
||||||
|
"image": "oven/bun:1.3.0",
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {},
|
||||||
|
"ghcr.io/devcontainers/features/github-cli:1": {}
|
||||||
|
},
|
||||||
|
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
||||||
|
"postCreateCommand": "bun install --frozen-lockfile",
|
||||||
|
"forwardPorts": [3002]
|
||||||
|
}
|
||||||
+1
-1
@@ -17,7 +17,7 @@ bun install
|
|||||||
bun dev
|
bun dev
|
||||||
```
|
```
|
||||||
|
|
||||||
The editor will be running at **http://localhost:3000**. That's it!
|
The editor will be running at **http://localhost:3002**. That's it!
|
||||||
|
|
||||||
### Optional
|
### Optional
|
||||||
|
|
||||||
|
|||||||
@@ -375,7 +375,7 @@ bun dev
|
|||||||
# 1. Build @pascal-app/core and @pascal-app/viewer
|
# 1. Build @pascal-app/core and @pascal-app/viewer
|
||||||
# 2. Start watching both packages for changes
|
# 2. Start watching both packages for changes
|
||||||
# 3. Start the Next.js editor dev server
|
# 3. Start the Next.js editor dev server
|
||||||
# Open http://localhost:3000
|
# Open http://localhost:3002
|
||||||
```
|
```
|
||||||
|
|
||||||
**Important:** Always run `bun dev` from the root directory to ensure the package watchers are running. This enables hot reload when you edit files in `packages/core/src/` or `packages/viewer/src/`.
|
**Important:** Always run `bun dev` from the root directory to ensure the package watchers are running. This enables hot reload when you edit files in `packages/core/src/` or `packages/viewer/src/`.
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ bun install
|
|||||||
bun dev
|
bun dev
|
||||||
```
|
```
|
||||||
|
|
||||||
The editor will be running at **http://localhost:3000**.
|
The editor will be running at **http://localhost:3002**.
|
||||||
|
|
||||||
## Environment Variables (optional)
|
## Environment Variables (optional)
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ cp .env.example .env
|
|||||||
| Variable | Required | Description |
|
| Variable | Required | Description |
|
||||||
|----------|----------|-------------|
|
|----------|----------|-------------|
|
||||||
| `NEXT_PUBLIC_GOOGLE_MAPS_API_KEY` | No | Enables address search in the editor |
|
| `NEXT_PUBLIC_GOOGLE_MAPS_API_KEY` | No | Enables address search in the editor |
|
||||||
| `PORT` | No | Dev server port (default: 3000) |
|
| `PORT` | No | Dev server port (default: 3002) |
|
||||||
|
|
||||||
The editor works fully without any environment variables.
|
The editor works fully without any environment variables.
|
||||||
|
|
||||||
|
|||||||
@@ -345,7 +345,7 @@ pnpm install
|
|||||||
# Run development server
|
# Run development server
|
||||||
pnpm dev
|
pnpm dev
|
||||||
|
|
||||||
# Open http://localhost:3000
|
# Open http://localhost:3002
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user