Skip to content

Commit

Permalink
updated for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Fareed95 committed Nov 2, 2024
1 parent 93a1161 commit 2cf29d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev -p $PORT",
"build": "next build",
"start": "next start",
"start": "next start -p $PORT",
"lint": "next lint"
},
"dependencies": {
Expand Down
7 changes: 5 additions & 2 deletions server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,22 @@
SECRET_KEY = os.getenv('DJANGO_SECRET_KEY')

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False

ALLOWED_HOSTS = [
'127.0.0.1',
'localhost',
'0.0.0.0'
'https://code-cell-website-fv8m.onrender.com'
]
CORS_ALLOWED_ORIGINS = [
"http://localhost:3000",
'https://code-cell-website-1-r8b5.onrender.com',
]

CSRF_TRUSTED_ORIGINS = [
"http://localhost:3000",
'https://code-cell-website-1-r8b5.onrender.com',
]

CORS_ALLOW_CREDENTIALS = True
Expand All @@ -42,7 +45,7 @@
'django.contrib.staticfiles',
'api',
'events',
'teams'
'teams',
]
REST_FRAMEWORK = {
'DEFAULT_AUTHENTICATION_CLASSES': (
Expand Down

0 comments on commit 2cf29d9

Please sign in to comment.