Deploy deepseek 2
Some checks failed
Test / test (push) Failing after 2s
Build and Deploy Nuxt / build (push) Successful in 1m51s

This commit is contained in:
2026-10-19 19:04:28 +02:00
parent b5d5e570d5
commit 1ec29121e1
45 changed files with 3438 additions and 166 deletions

View File

@@ -0,0 +1,7 @@
import { defineEventHandler, setHeader } from 'h3'
import { buildFoundryModuleZip } from '../../utils/foundry-module.js'
export default defineEventHandler((event) => {
setHeader(event, 'content-type', 'application/zip')
return buildFoundryModuleZip()
})

View 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`,
}
})