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