Skip to content

Commit

Permalink
easy
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 20, 2023
1 parent 19d3a7b commit 2d6f3bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion server/prisma/seed.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { faker } from "@faker-js/faker";
import { PrismaClient, UserRoleName } from "@prisma/client";
import argon2 from "argon2";
import { error } from "console";
const prisma = new PrismaClient();

const seed = async () => {
Expand Down Expand Up @@ -51,7 +52,7 @@ const createUser = async ({

seed()
.catch((e) => {
console.error(e);
error(e);
process.exit(1);
})
.finally(async () => {
Expand Down
3 changes: 1 addition & 2 deletions web/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ export default async function middleware(request: NextRequest) {
localeDetection: true,
});
const response = handleI18nRouting(request);

await tokenParser(request, response);
response.cookies.set(TOKEN, "", { expires: new Date(0) });
// Step 3: Alter the response (example)
response.headers.set(X_URL, request.url);

return response;
Expand Down

0 comments on commit 2d6f3bd

Please sign in to comment.