Commit 7e638d8d authored by Niklas Mischkulnig's avatar Niklas Mischkulnig

wip debug

parent 7fef3a0c
export function GET() {
return Response.json({ name: 'John Doe' })
}
export const dynamic = 'force-dynamic'
import React from 'react'
export default function Layout({ children }) {
return (
<html>
<head>
<title>My App</title>
</head>
<body>{children}</body>
</html>
)
}
import React from 'react'
export default function Page() {
return <h1>My Page</h1>
}
export const dynamic = 'force-dynamic'
const Dynamic: React.FC = () => {
return <h1>Dynamic Component</h1>
}
export default Dynamic
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import './.next/dev/types/routes.d.ts'
// NOTE: This file should not be edited
// see https://nextjs.org/docs/pages/api-reference/config/typescript for more information.
module.exports = {
experimental: {
serverMinification: true,
},
}
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
typescript: {
ignoreBuildErrors: true,
},
}
export default nextConfig
import type { AppProps } from 'next/app'
import dynamic from 'next/dynamic'
const Dynamic = dynamic(() => import('../components/Dynamic'))
export default function App({ Component, pageProps }: AppProps) {
return (
<>
This is in app
<Dynamic />
<Component {...pageProps} />
</>
)
}
export default function handler(req, res) {
res.status(200).json({ name: 'John Doe' })
}
/** Add your relevant code here for the issue to reproduce */
export default function Home() {
return null
}
export default () => 'Hello World'
export function getServerSideProps() {
return {
props: {},
}
}
import dynamic from 'next/dynamic'
const Dynamic = dynamic(() => import('../components/Dynamic'))
/** Add your relevant code here for the issue to reproduce */
export default function Works() {
return <Dynamic />
}
{
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
"noEmit": true,
"incremental": true,
"module": "esnext",
"esModuleInterop": true,
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx"
},
"include": ["next-env.d.ts", "**/*.mts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules", "**/*.test.ts", "**/*.test.tsx"]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment