Skip to content

Commit

Permalink
feat: update cloudflare R2 assets url
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-sarfati committed Apr 4, 2024
1 parent a0a2f21 commit 600fea4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/web/lib/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ export const withAuth = (
if (token) {
try {
const decodedUser = await decodeJWT(token);
console.log("decodedUser", decodedUser);
const user = await prisma.user.findFirst({
where: {
id: {
Expand Down Expand Up @@ -546,6 +547,7 @@ export const withSession =

try {
const decodedUser = await decodeJWT(token);
console.log("decodedUser", decodedUser);
const user = await prisma.user.findFirst({
where: {
id: {
Expand Down
1 change: 1 addition & 0 deletions apps/web/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export interface UserProps {
id: string;
name: string;
email: string;
lang: string;
image?: string;
createdAt: Date;
role: RoleProps;
Expand Down
4 changes: 2 additions & 2 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ module.exports = {
images: {
remotePatterns: [
{
hostname: "assets.7qr.codes", // for Dub's static assets
hostname: "assets.7qr.codes",
},
{
hostname: "pub-1865f12de1ba4e87a9c8999bd47adebc.r2.dev"
hostname: "pub-760f0f5a270c48a3aa7e591eb95639f5.r2.dev"
},
{
hostname: "www.google.com",
Expand Down

0 comments on commit 600fea4

Please sign in to comment.