Skip to content

Commit 184f4a5

Browse files
committed
receive base url env var on the cra build plan
1 parent fbef74b commit 184f4a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/config.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
const config = {
22
youtubeRegex: /(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/\s]{11})/,
33
databaseUrl: process.env.DATABASE_URL,
4-
baseUrl: process.env.BASE_URL || "http://localhost:3000",
4+
baseUrl:
5+
process.env.BASE_URL ||
6+
process.env.REACT_APP_BASE_URL ||
7+
"http://localhost:3000",
58
}
69

710
export default config

0 commit comments

Comments
 (0)