Code changes to make it work with Fly.io
This commit is contained in:
parent
5b93901976
commit
0695a01f17
9 changed files with 100 additions and 85 deletions
|
|
@ -11,7 +11,7 @@ const app = express();
|
|||
|
||||
app.use(
|
||||
session({
|
||||
secret: process.env.SESSION_KEY,
|
||||
secret: process.env.AUTH_SESSION_KEY,
|
||||
resave: false,
|
||||
saveUninitialized: false,
|
||||
cookie: {
|
||||
|
|
@ -25,7 +25,7 @@ app.use(passport.session());
|
|||
|
||||
app.use(
|
||||
cors({
|
||||
origin: "http://localhost:5173",
|
||||
origin: "https://bytecamp-web.fly.dev",
|
||||
methods: "GET",
|
||||
credentials: true,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue