mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-02 02:17:15 +00:00
12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
|
import { CreateOptions } from '#app'
|
||
|
|
||
|
const entry = process.server
|
||
|
? (ctx?: CreateOptions['ssrContext']) => import('#app/entry').then(m => m.default(ctx))
|
||
|
: () => import('#app/entry').then(m => m.default)
|
||
|
|
||
|
if (process.client) {
|
||
|
entry()
|
||
|
}
|
||
|
|
||
|
export default entry
|