@dargmuesli/nuxt-vio 20.6.5 → 20.6.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nuxt.config.ts CHANGED
@@ -133,7 +133,7 @@ export default defineNuxtConfig(
133
133
  },
134
134
  vite: {
135
135
  plugins: [
136
- tailwindcss(),
136
+ tailwindcss() as never, // TODO: remove typecast once tailwindcss fixes the plugin type
137
137
  {
138
138
  // This plugin suppresses false-positive sourcemap warnings from Tailwind's Vite plugin
139
139
  // TODO: remove once tailwind generates sourcemaps for their transforms (https://github.com/tailwindlabs/tailwindcss/discussions/16119)
package/package.json CHANGED
@@ -55,7 +55,7 @@
55
55
  "defu": "6.1.4",
56
56
  "h3": "1.15.5",
57
57
  "lodash-es": "4.17.23",
58
- "nuxt": "https://pkg.pr.new/nuxt@34210",
58
+ "nuxt": "4.3.1",
59
59
  "pinia": "3.0.4",
60
60
  "prettier": "3.8.1",
61
61
  "prettier-plugin-tailwindcss": "0.7.2",
@@ -76,9 +76,10 @@
76
76
  ".config",
77
77
  "app",
78
78
  "i18n",
79
+ "node",
80
+ "scripts",
79
81
  "server",
80
82
  "shared",
81
- "node",
82
83
  "nuxt.config.ts",
83
84
  "package.json"
84
85
  ],
@@ -117,5 +118,5 @@
117
118
  "start:static": "node scripts/server/static.mjs"
118
119
  },
119
120
  "type": "module",
120
- "version": "20.6.5"
121
+ "version": "20.6.6"
121
122
  }
@@ -0,0 +1,19 @@
1
+ import fs from 'node:fs'
2
+ import path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+
5
+ const __filename = fileURLToPath(import.meta.url)
6
+ const __dirname = path.dirname(__filename)
7
+ const root = path.resolve(__dirname, '../..')
8
+
9
+ const certSuffix = process.env.CI ? '-ci' : '-dev'
10
+ const certPath = path.join(root, `.config/certificates/ssl${certSuffix}.crt`)
11
+ const keyPath = path.join(root, `.config/certificates/ssl${certSuffix}.key`)
12
+
13
+ console.log('Using SSL certificate:', certPath)
14
+
15
+ process.env.NITRO_SSL_CERT = fs.readFileSync(certPath, 'utf8')
16
+ process.env.NITRO_SSL_KEY = fs.readFileSync(keyPath, 'utf8')
17
+
18
+ // await import(path.join(root, '.output/server/sentry.server.config.mjs'))
19
+ await import(path.join(root, 'playground/.output/server/index.mjs'))
@@ -0,0 +1,29 @@
1
+ import { spawn } from 'node:child_process'
2
+ import path from 'node:path'
3
+ import { fileURLToPath } from 'node:url'
4
+
5
+ const __filename = fileURLToPath(import.meta.url)
6
+ const __dirname = path.dirname(__filename)
7
+ const root = path.resolve(__dirname, '../..')
8
+
9
+ const certSuffix = process.env.CI ? '-ci' : '-dev'
10
+ const certPath = path.join(root, `.config/certificates/ssl${certSuffix}.crt`)
11
+ const keyPath = path.join(root, `.config/certificates/ssl${certSuffix}.key`)
12
+
13
+ const serveProcess = spawn(
14
+ 'serve',
15
+ ['playground/.output/public', '--ssl-cert', certPath, '--ssl-key', keyPath],
16
+ {
17
+ stdio: 'inherit',
18
+ cwd: root,
19
+ },
20
+ )
21
+
22
+ serveProcess.on('error', (error) => {
23
+ console.error('Failed to start serve:', error)
24
+ process.exit(1)
25
+ })
26
+
27
+ serveProcess.on('exit', (code) => {
28
+ process.exit(code || 0)
29
+ })