Skip to content

Commit

Permalink
Merge pull request #205 from h8570rg/develop
Browse files Browse the repository at this point in the history
Prd
  • Loading branch information
h8570rg authored Dec 21, 2024
2 parents 36100a2 + bb8ebd7 commit 1cf1043
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cSpell.words": [
"fkey",
"inbucket",
"janreco",
"jankiroku",
"nextjs",
"nextui",
"oidc",
Expand Down
2 changes: 1 addition & 1 deletion components/Logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Logo({ className }: { className?: string }) {
{process.env.NEXT_PUBLIC_SERVICE_ENV === "development" && (
<span className="text-warning">{`[開発環境] `}</span>
)}
雀鬼禄
雀鬼録
</div>
);
}
Expand Down
11 changes: 6 additions & 5 deletions middleware.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { type NextRequest } from "next/server";
import { NextResponse, type NextRequest } from "next/server";
import { updateSession } from "./lib/utils/supabase/middleware";

/**
* @see https://supabase.com/docs/guides/auth/server-side/creating-a-client?environment=middleware
* @see https://supabase.com/docs/guides/auth/server-side/nextjs
*/
export async function middleware(request: NextRequest) {
if (request.nextUrl.pathname === "/") {
return NextResponse.next();
}

/** @see https://github.com/orgs/supabase/discussions/20905 */
return await updateSession(request);
}
Expand All @@ -21,11 +25,8 @@ export const config = {
* - _next/static (static files)
* - _next/image (image optimization files)
* - favicon.ico (favicon file)
* - manifest.json (web app manifest file)
* - .(svg|png|jpg|jpeg|gif|webp) (image files)
* - "/" (the root path)
* Feel free to modify this pattern to include more paths.
*/
"/((?!_next/static|_next/image|favicon.ico|manifest.json|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$|^$).+)",
"/((?!_next/static|_next/image|favicon.ico|manifest.json|.*\\.(?:svg|png|jpg|jpeg|gif|webp)$).*)",
],
};
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "janreco",
"name": "jankiroku",
"version": "0.1.0",
"description": "",
"main": "index.js",
Expand Down Expand Up @@ -31,14 +31,14 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/h8570rg/janreco.git"
"url": "git+https://github.com/h8570rg/jankiroku.git"
},
"author": "https://github.com/h8570rg",
"license": "ISC",
"bugs": {
"url": "https://github.com/h8570rg/janreco/issues"
"url": "https://github.com/h8570rg/jankiroku/issues"
},
"homepage": "https://github.com/h8570rg/janreco#readme",
"homepage": "https://github.com/h8570rg/jankiroku#readme",
"dependencies": {
"@dnd-kit/sortable": "^8.0.0",
"@hookform/resolvers": "^3.9.0",
Expand Down

0 comments on commit 1cf1043

Please sign in to comment.