mirror of
https://github.com/crabwise-ai/crabwalk.git
synced 2026-08-14 09:02:07 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff6fed5932 |
@@ -3,3 +3,7 @@
|
||||
|
||||
# Clawdbot gateway auth token
|
||||
CLAWDBOT_API_TOKEN=
|
||||
|
||||
# Comma-separated list of allowed hosts for the dev server
|
||||
# Example: ALLOWED_HOSTS=myhost.local,192.168.1.100,.mydomain.com
|
||||
ALLOWED_HOSTS=
|
||||
|
||||
@@ -24,6 +24,10 @@ COPY package*.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY --from=builder /app/src ./src
|
||||
COPY --from=builder /app/public ./public
|
||||
COPY --from=builder /app/vite.config.ts ./
|
||||
COPY --from=builder /app/tsconfig.json ./
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -5,4 +5,5 @@ services:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- CLAWDBOT_API_TOKEN=${CLAWDBOT_API_TOKEN}
|
||||
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-}
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -4,7 +4,14 @@ import viteReact from '@vitejs/plugin-react'
|
||||
import viteTsConfigPaths from 'vite-tsconfig-paths'
|
||||
import tailwindcss from '@tailwindcss/vite'
|
||||
|
||||
const allowedHosts = process.env.ALLOWED_HOSTS
|
||||
? process.env.ALLOWED_HOSTS.split(',').map(host => host.trim()).filter(Boolean)
|
||||
: undefined
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
allowedHosts,
|
||||
},
|
||||
plugins: [
|
||||
viteTsConfigPaths({
|
||||
projects: ['./tsconfig.json'],
|
||||
|
||||
Reference in New Issue
Block a user