Skip to content

Commit

Permalink
enable scalar in production mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsella committed Dec 14, 2024
1 parent 2f1b094 commit 04e3b92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2,187 deletions.
16 changes: 8 additions & 8 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ function get_from_env(field: string): string {
export default defineNuxtConfig({
compatibilityDate: "2024-04-03",
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@scalar/nuxt"],
scalar: {
spec: {
url: "http://localhost:3000/openapi.json",
},
},
modules: ["@nuxtjs/tailwindcss"],
runtimeConfig: {
moviesDir: "./downloaded",
opensubtitles_key: get_from_env("OPENSUBTITLES_KEY"),
Expand All @@ -27,8 +22,13 @@ export default defineNuxtConfig({
jackettApiKey: get_from_env("JACKETT_API_KEY"),
},
nitro: {
// we need https://github.com/unjs/nitro/pull/2570
experimental: { tasks: true, openAPI: true },
experimental: {
tasks: true,
openAPI: true,
},
openAPI: {
production: "prerender",
},
scheduledTasks: {
"0 * * * *": ["remove_old_movies"],
},
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"db:push": "drizzle-kit push"
},
"dependencies": {
"@scalar/nuxt": "^0.2.160",
"@types/lodash": "^4.17.13",
"drizzle-orm": "^0.36.3",
"fast-xml-parser": "^4.5.0",
Expand Down
Loading

0 comments on commit 04e3b92

Please sign in to comment.