Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
27 lines
No EOL
1.3 KiB
Text
27 lines
No EOL
1.3 KiB
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return formatNextPathnameInfo;
|
|
}
|
|
});
|
|
const _removetrailingslash = require("./remove-trailing-slash");
|
|
const _addpathprefix = require("./add-path-prefix");
|
|
const _addpathsuffix = require("./add-path-suffix");
|
|
const _addlocale = require("./add-locale");
|
|
function formatNextPathnameInfo(info) {
|
|
let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? undefined : info.defaultLocale, info.ignorePrefix);
|
|
if (info.buildId || !info.trailingSlash) {
|
|
pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
}
|
|
if (info.buildId) {
|
|
pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, `/_next/data/${info.buildId}`), info.pathname === '/' ? 'index.json' : '.json');
|
|
}
|
|
pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);
|
|
return !info.buildId && info.trailingSlash ? !pathname.endsWith('/') ? (0, _addpathsuffix.addPathSuffix)(pathname, '/') : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
|
}
|
|
|
|
//# sourceMappingURL=format-next-pathname-info.js.map |