Deploy deepseek 2
This commit is contained in:
14
frontend/server/routes/foundry/module.json.js
Normal file
14
frontend/server/routes/foundry/module.json.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineEventHandler, getRequestURL } from 'h3'
|
||||
import { readModuleManifest } from '../../utils/foundry-module.js'
|
||||
|
||||
// Foundry's manifest URL: the module.json plus the two absolute URLs it needs to install and to
|
||||
// check for updates later. Built from the request so every self-hosted Dragonroll serves its own.
|
||||
export default defineEventHandler((event) => {
|
||||
const origin = getRequestURL(event).origin
|
||||
|
||||
return {
|
||||
...readModuleManifest(),
|
||||
manifest: `${origin}/foundry/module.json`,
|
||||
download: `${origin}/foundry/dragonroll-foundry.zip`,
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user