Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-jonas committed Dec 11, 2024
1 parent e502b4a commit 34e401b
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 13 deletions.
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ const config = tseslint.config([
"no-extra-semi": "off",
},
},
{
files: ["examples/nextjs-app-router/**/*.ts", "examples/nextjs-app-router/**/*.tsx"],
languageOptions: {
parserOptions: {
project: ["./examples/nextjs-app-router/tsconfig.json"],
},
},
},
{
name: "elements-react",
files: ["packages/elements-react/**"],
Expand Down
11 changes: 0 additions & 11 deletions examples/nextjs-app-router/.eslintrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions examples/nextjs-app-router/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"targets": {
"lint": {
"command": "eslint",
"dependsOn": ["build"],
"options": {
"cwd": "examples/nextjs-app-router"
}
}
}
}
2 changes: 1 addition & 1 deletion examples/nextjs-pages-router/pages/api/hello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Data {
}

export default function handler(
req: NextApiRequest,
_req: NextApiRequest,
res: NextApiResponse<Data>,
) {
res.status(200).json({ name: "John Doe" })
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PropsWithChildren } from "react"

import "@ory/elements-react/theme/styles.css"

export default async function AuthLayout({ children }: PropsWithChildren) {
export default function AuthLayout({ children }: PropsWithChildren) {
return (
<main className="p-4 pb-8 flex items-center justify-center flex-col gap-8 min-h-screen">
{children}
Expand Down
4 changes: 4 additions & 0 deletions packages/nextjs/src/utils/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export function guessCookieDomain(url: string | undefined, config: OryConfig) {
parsedUrl = url
}

if (isIPAddress(parsedUrl)) {
return parsedUrl
}

const parsed = parse(parsedUrl)

if (isErrorResult(parsed)) {
Expand Down

0 comments on commit 34e401b

Please sign in to comment.