diff --git a/next.config.mjs b/next.config.mjs index 5a620a43..6d0fc7bf 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -9,7 +9,7 @@ const withPWA = nextPWA({ }) const defineNextConfig = { - output: "export", + // output: "export", reactStrictMode: true, images: { domains: [ diff --git a/pages/api/xr.ts b/pages/api/xr.ts new file mode 100644 index 00000000..5f05a73b --- /dev/null +++ b/pages/api/xr.ts @@ -0,0 +1,9 @@ +import type { NextApiRequest, NextApiResponse } from "next" +import { html } from "@/xr/index" + +export default function handler( + req: NextApiRequest, + res: NextApiResponse, +) { + res.status(200).send(html) +} diff --git a/tsconfig.json b/tsconfig.json index b5675dfa..f0c0b623 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,8 @@ "@/test/*": ["test/*"], "@/hooks/*": ["hooks/*"], "@/data/*": ["data/*"], - "@/types/*": ["types/*"] + "@/types/*": ["types/*"], + "@/xr/*": ["xr/*"] }, "incremental": true }, diff --git a/xr/index.ts b/xr/index.ts new file mode 100644 index 00000000..a3a6f3a0 --- /dev/null +++ b/xr/index.ts @@ -0,0 +1,100 @@ +export const html = ` + + + + + Hello WebXR! + + + + + + + + + + +`