chore(deps): update auth middleware and dependencies
- Add OptionalSessionMiddleware for non-required auth checks - Add GetUserID helper function - Update import paths in auth and main - Update docker-compose with frontend build configuration - Clean up go.mod and go.sum Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
119e3b7a6d
commit
ac04d7f346
6 changed files with 39 additions and 20 deletions
|
|
@ -57,14 +57,25 @@ services:
|
|||
|
||||
vite:
|
||||
image: node:20-alpine
|
||||
working_dir: /app/studio
|
||||
working_dir: /app/frontends
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- CHOKIDAR_INTERVAL=100
|
||||
command: sh -c "npm install && npm run dev -- --host"
|
||||
command: sh -c "npm install && npm run dev:studio -- --host"
|
||||
volumes:
|
||||
- ./studio:/app/studio
|
||||
- vite_node_modules:/app/studio/node_modules
|
||||
- ./frontends:/app/frontends
|
||||
- frontends_node_modules:/app/frontends/node_modules
|
||||
|
||||
owner-tools:
|
||||
image: node:20-alpine
|
||||
working_dir: /app/frontends
|
||||
environment:
|
||||
- CHOKIDAR_USEPOLLING=true
|
||||
- CHOKIDAR_INTERVAL=100
|
||||
command: sh -c "while [ ! -f /app/frontends/node_modules/.bin/vite ]; do sleep 5; done && npm run dev:owner-tools -- --host"
|
||||
volumes:
|
||||
- ./frontends:/app/frontends
|
||||
- frontends_node_modules:/app/frontends/node_modules
|
||||
|
||||
app:
|
||||
image: cosmtrek/air
|
||||
|
|
@ -76,6 +87,7 @@ services:
|
|||
air_wd: /app
|
||||
ENV: local
|
||||
VITE_URL: http://vite:5173
|
||||
OWNER_TOOLS_URL: http://owner-tools:5174
|
||||
DATABASE_URL: postgres://writekit:writekit@postgres:5432/writekit?sslmode=disable
|
||||
DOMAIN: writekit.lvh.me
|
||||
BASE_URL: http://writekit.lvh.me
|
||||
|
|
@ -116,4 +128,4 @@ volumes:
|
|||
minio_data:
|
||||
app_data:
|
||||
go_mod:
|
||||
vite_node_modules:
|
||||
frontends_node_modules:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue