Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 12 additions & 14 deletions packages/adapter-next/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,22 @@ export function createNextHoloHelpers<TCustom extends HoloConfigMap = HoloConfig
return runtime.config(path)
}

const resolveRuntimeProjection = async () => {
const runtime = await resolveRuntime()
return {
projectRoot: runtime.projectRoot,
config: runtime.loadedConfig,
registry: runtime.registry,
runtime,
}
}

return {
async getApp() {
const runtime = await resolveRuntime()
return {
projectRoot: runtime.projectRoot,
config: runtime.loadedConfig,
registry: runtime.registry,
runtime,
}
return await resolveRuntimeProjection()
},
async getProject() {
const runtime = await resolveRuntime()
return {
projectRoot: runtime.projectRoot,
config: runtime.loadedConfig,
registry: runtime.registry,
runtime,
}
return await resolveRuntimeProjection()
},
async getSession() {
const runtime = await resolveRuntime()
Expand Down
Loading