Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
16
Frontend-Learner/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.js
generated
vendored
Normal file
16
Frontend-Learner/node_modules/@nuxt/nitro-server/dist/runtime/utils/paths.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { joinRelativeURL } from "ufo";
|
||||
import { useRuntimeConfig } from "#internal/nitro";
|
||||
export function baseURL() {
|
||||
return useRuntimeConfig().app.baseURL;
|
||||
}
|
||||
export function buildAssetsDir() {
|
||||
return useRuntimeConfig().app.buildAssetsDir;
|
||||
}
|
||||
export function buildAssetsURL(...path) {
|
||||
return joinRelativeURL(publicAssetsURL(), buildAssetsDir(), ...path);
|
||||
}
|
||||
export function publicAssetsURL(...path) {
|
||||
const app = useRuntimeConfig().app;
|
||||
const publicBase = app.cdnURL || app.baseURL;
|
||||
return path.length ? joinRelativeURL(publicBase, ...path) : publicBase;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue