Ajso
Ajso
SSolidJS
Created by Ajso on 10/20/2024 in #support
useParams() returns params with unknown values
I just realized it might be a docker issue, because I run my dev frontend, backend and db in docker-compose. Params are defined when I run the frontend standalone without docker. You can still take a look at it, but it isn't a solid related issue I believe.
docker-compose.yaml
services:
frontend-dev:
container_name: band-app-frontend-dev
build:
context: frontend
dockerfile: docker/dev/Dockerfile
volumes:
- ./frontend:/app:cached
ports:
- "3000:3000"
- "4000:4000"
env_file:
- frontend/.env.local
restart: always
...
docker-compose.yaml
services:
frontend-dev:
container_name: band-app-frontend-dev
build:
context: frontend
dockerfile: docker/dev/Dockerfile
volumes:
- ./frontend:/app:cached
ports:
- "3000:3000"
- "4000:4000"
env_file:
- frontend/.env.local
restart: always
...
FROM oven/bun:latest
WORKDIR /app
COPY package.json bun.lockb ./
RUN bun install
COPY . .
EXPOSE 3000
CMD ["bun", "dev", "--host"]
FROM oven/bun:latest
WORKDIR /app
COPY package.json bun.lockb ./
RUN bun install
COPY . .
EXPOSE 3000
CMD ["bun", "dev", "--host"]
3 replies