Code changes to make it work with Fly.io

This commit is contained in:
JBB0807 2025-04-21 17:14:11 -07:00
parent 5b93901976
commit 0695a01f17
9 changed files with 100 additions and 85 deletions

View file

@ -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,
})