Skip to content

Commit a950fc2

Browse files
committed
chore(backend): enable local development URLs
1 parent 61b38ce commit a950fc2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

backend/.env.example

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
# Defaults to 1337
77
#PORT="1337"
88

9+
# CONFIG [production-only] Absolute URL where the Strapi server will be served
10+
# With scheme, host, port and path but without trailing slash
11+
# On production, ensure it uses the HTTPS protocol
12+
#PUBLIC_URL="https://api.easyfest.site"
13+
914
# CONFIG [optional] Database client to be used by Strapi
1015
# Check other required variables at ./config/database.js
1116
# Accepted values: mysql, mysql2, postgres, sqlite. Defaults to sqlite.

backend/config/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = ({ env }) => ({
22
host: env('HOST', '0.0.0.0'),
33
port: env.int('PORT', 1337),
4-
url: 'https://api.easyfest.site',
4+
url: env('PUBLIC_URL'),
55
app: {
66
keys: env.array('APP_KEYS'),
77
},

0 commit comments

Comments
 (0)