Skip to content

Commit 5951ea9

Browse files
committed
Add needed env vers for building purposes on fly.io
1 parent d429d80 commit 5951ea9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ COPY . /code
2626

2727
# env var for building purposes
2828
ENV SECRET_KEY "aGkCk2XY3qk7kOZ0HDXoGq5DXlshIhfpspT2bgrV13CzJWCsQa"
29+
ENV CORS_ALLOWED_ORIGINS "localhost:5173"
30+
ENV ALLOWED_HOSTS "http://localhost"
31+
ENV CSRF_TRUSTED_ORIGINS "http://localhost"
2932

3033
RUN python manage.py collectstatic --noinput
3134

0 commit comments

Comments
 (0)