Skip to content

Commit

Permalink
Merge pull request #1493 from ThatConference/next/feature
Browse files Browse the repository at this point in the history
promote Next/feature to production
  • Loading branch information
brettski authored Nov 1, 2023
2 parents 45d3614 + 3c2995a commit 58e7642
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "that-us",
"version": "3.15.1",
"version": "3.15.2",
"description": "THAT.us website",
"main": "index.js",
"type": "module",
Expand Down
12 changes: 4 additions & 8 deletions src/lib/stores/favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,11 @@ export async function toggle(sessionId, eventId) {
return results;
}

async function create() {
const initalValues = await get();
favoritesStore.set(initalValues);
}

if (browser) {
page.subscribe((values) => {
if (values?.data?.user?.profile) {
create();
page.subscribe(async (values) => {
if (values?.data?.user?.isAuthenticated) {
const initalValues = await get();
favoritesStore.set(initalValues);
}
});
}
Expand Down
21 changes: 21 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Referrer-Policy",
"value": "no-referrer-when-downgrade"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
}
]
}
]
}

1 comment on commit 58e7642

@vercel
Copy link

@vercel vercel bot commented on 58e7642 Nov 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.