@nuasite/nua 0.15.0 → 0.15.2
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/package.json +6 -6
- package/src/integration.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuasite/nua",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@astrojs/mdx": "5.0.0",
|
|
40
40
|
"@astrojs/rss": "4.0.17",
|
|
41
41
|
"@astrojs/sitemap": "3.7.1",
|
|
42
|
-
"@nuasite/llm-enhancements": "0.15.
|
|
43
|
-
"@nuasite/cli": "0.15.
|
|
44
|
-
"@nuasite/cms": "0.15.
|
|
45
|
-
"@nuasite/components": "0.15.
|
|
46
|
-
"@nuasite/core": "0.15.
|
|
42
|
+
"@nuasite/llm-enhancements": "0.15.2",
|
|
43
|
+
"@nuasite/cli": "0.15.2",
|
|
44
|
+
"@nuasite/cms": "0.15.2",
|
|
45
|
+
"@nuasite/components": "0.15.2",
|
|
46
|
+
"@nuasite/core": "0.15.2",
|
|
47
47
|
"@tailwindcss/vite": "^4.2.1",
|
|
48
48
|
"@tailwindcss/typography": "^0.5.19",
|
|
49
49
|
"astro": "^6.0.2",
|
package/src/integration.ts
CHANGED
|
@@ -77,7 +77,7 @@ export default function nua(options: NuaIntegrationOptions = {}): AstroIntegrati
|
|
|
77
77
|
const astroRedirects = config.redirects ?? {}
|
|
78
78
|
capturedRedirects = Object.entries(astroRedirects).map(([from, value]) => {
|
|
79
79
|
const destination = typeof value === 'string' ? value : value.destination
|
|
80
|
-
const code = typeof value === 'string' ?
|
|
80
|
+
const code = typeof value === 'string' ? 307 : (value.status ?? 307)
|
|
81
81
|
const normalizedFrom = from.replace(/\[\.\.\.[\w]+\]/g, '*')
|
|
82
82
|
const normalizedTo = destination.replace(/\[\.\.\.[\w]+\]/g, ':splat')
|
|
83
83
|
return { from: normalizedFrom, to: normalizedTo, code }
|