mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-28 12:33:40 +00:00
v1.0.22 (#67)
This commit is contained in:
@@ -101,7 +101,7 @@ export async function handle({ request, resolve }) {
|
||||
cookie: { path: '/', secure: true }
|
||||
});
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
console.log(error);
|
||||
return {
|
||||
status: 302,
|
||||
headers: {
|
||||
@@ -124,7 +124,7 @@ export async function handle({ request, resolve }) {
|
||||
if (!session['set-cookie']) {
|
||||
if (!session?.data?.coolToken && !publicPages.includes(request.path)) {
|
||||
return {
|
||||
status: 301,
|
||||
status: 302,
|
||||
headers: {
|
||||
location: '/'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user