@nuxt/schema-nightly 4.3.0-29431381.f1713850 → 4.3.0-29431658.1c44667d
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/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -485,7 +485,7 @@ const common = defineResolvers({
|
|
|
485
485
|
},
|
|
486
486
|
alias: {
|
|
487
487
|
$resolve: async (val, get) => {
|
|
488
|
-
const [srcDir, rootDir, buildDir, sharedDir] = await Promise.all([get("srcDir"), get("rootDir"), get("buildDir"), get("dir.shared")]);
|
|
488
|
+
const [srcDir, rootDir, buildDir, sharedDir, serverDir] = await Promise.all([get("srcDir"), get("rootDir"), get("buildDir"), get("dir.shared"), get("serverDir")]);
|
|
489
489
|
const srcWithTrailingSlash = withTrailingSlash(srcDir);
|
|
490
490
|
const rootWithTrailingSlash = withTrailingSlash(rootDir);
|
|
491
491
|
return {
|
|
@@ -494,6 +494,7 @@ const common = defineResolvers({
|
|
|
494
494
|
"~~": rootWithTrailingSlash,
|
|
495
495
|
"@@": rootWithTrailingSlash,
|
|
496
496
|
"#shared": withTrailingSlash(resolve(rootDir, sharedDir)),
|
|
497
|
+
"#server": withTrailingSlash(serverDir),
|
|
497
498
|
"#build": withTrailingSlash(buildDir),
|
|
498
499
|
"#internal/nuxt/paths": resolve(buildDir, "paths.mjs"),
|
|
499
500
|
...typeof val === "object" ? val : {}
|