Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Nov 21, 2023
1 parent 773f602 commit 041dc07
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/next/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";

import { sessionOptions as appRouterClientComponentRouteHandlerSwrIronOptions } from "./app/app-router-client-component-route-handler-swr/lib";
import { sessionOptions as pagesRouterApiRouteSwrIronOptions } from "./pages/pages-router-api-route-swr/lib";
import { sessionOptions as pagesRouterApiRouteSwrIronOptions } from "./pages-components/pages-router-api-route-swr/lib";
import { cookies } from "next/headers";
import { SessionOptions, getIronSession } from "iron-session";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
sessionOptions,
sleep,
SessionData,
} from "../../pages-router-api-route-swr/lib";
} from "../../../pages-components/pages-router-api-route-swr/lib";

// login
export default async function handler(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
sleep,
defaultSession,
SessionData,
} from "../../pages-router-redirect-api-route-fetch/lib";
} from "../../../pages-components/pages-router-redirect-api-route-fetch/lib";

export default async function handler(
req: NextApiRequest,
Expand Down
4 changes: 2 additions & 2 deletions examples/next/src/pages/pages-router-api-route-swr/index.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import Link from "next/link";
import * as css from "@/app/css";

import { Form } from "./form";
import { Form } from "@/pages-components/pages-router-api-route-swr/form";
import { Title } from "@/app/title";
import { GetTheCode } from "../../get-the-code";
import { GetTheCode } from "@/get-the-code";
import Head from "next/head";

export default function AppRouterSWR() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Title } from "@/app/title";
import useSession from "../use-session";
import useSession from "@/pages-components/pages-router-api-route-swr/use-session";
import { useEffect } from "react";
import { useRouter } from "next/navigation";
import * as css from "@/app/css";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Title } from "@/app/title";
import * as css from "@/app/css";

import { getIronSession } from "iron-session";
import { SessionData, sessionOptions } from "../lib";
import {
SessionData,
sessionOptions,
} from "@/pages-components/pages-router-api-route-swr/lib";
import Link from "next/link";
import type { InferGetServerSidePropsType, GetServerSideProps } from "next";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ import { Title } from "@/app/title";
import * as css from "@/app/css";

import { getIronSession } from "iron-session";
import { SessionData, sessionOptions } from "../lib";
import {
SessionData,
sessionOptions,
} from "@/pages-components/pages-router-api-route-swr/lib";
import Link from "next/link";
import type { InferGetServerSidePropsType, GetServerSideProps } from "next";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { GetTheCode } from "@/get-the-code";
import { Title } from "@/app/title";
import * as css from "@/app/css";
import Link from "next/link";
import { Form } from "./form";
import { Form } from "@/pages-components/pages-router-redirect-api-route-fetch/form";
import Head from "next/head";

export default function PagesRouterRedirect() {
Expand Down

0 comments on commit 041dc07

Please sign in to comment.