Skip to content

Commit 4ca8f28

Browse files
committed
done
1 parent 251bf19 commit 4ca8f28

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ module.exports = {
77
CLIENT_SECRET: process.env.CLIENT_SECRET,
88

99
CLIENT_ORIGIN: process.env.CLIENT_ORIGIN || 'http://localhost:3000',
10-
DB_URL: process.env.DATABASE_URL || 'postgresql://tunechainer@localhost/saved_playlists'
10+
DB_URL: process.env.DB_URL || 'postgresql://tunechainer@localhost/saved_playlists'
1111

1212
};

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const db = knex ({
1919

2020
app.use(
2121
cors({
22-
22+
origin: CLIENT_ORIGIN
2323
})
2424
);
2525

0 commit comments

Comments
 (0)