✅ COMPLETED: 1. Dockerfile uses port 80 (astro preview) 2. BaseLayout imports globals.css 3. globals.css with Tailwind v4 @theme syntax 4. index.astro has Header, Footer, FixedContact 5. All image references fixed to existing files 6. Hero uses hdpe_pipe_main.jpg 7. Product cards use hdpe001.jpg 8. pt-20 on main for fixed header ✅ TESTED LOCALLY: - Build: 15 pages in 1.27s - Docker build successful - Port 80 working - Images load - CSS works Ready for Easypanel deployment.
48 lines
1.3 KiB
JavaScript
48 lines
1.3 KiB
JavaScript
/**
|
|
* @typedef {import('./lib/errors.js').ErrnoException} ErrnoException
|
|
*/
|
|
|
|
import {defaultResolve} from './lib/resolve.js'
|
|
|
|
export {moduleResolve} from './lib/resolve.js'
|
|
|
|
/**
|
|
* Match `import.meta.resolve` except that `parent` is required (you can pass
|
|
* `import.meta.url`).
|
|
*
|
|
* @param {string} specifier
|
|
* The module specifier to resolve relative to parent
|
|
* (`/example.js`, `./example.js`, `../example.js`, `some-package`, `fs`,
|
|
* etc).
|
|
* @param {string} parent
|
|
* The absolute parent module URL to resolve from.
|
|
* You must pass `import.meta.url` or something else.
|
|
* @returns {string}
|
|
* Returns a string to a full `file:`, `data:`, or `node:` URL
|
|
* to the found thing.
|
|
*/
|
|
export function resolve(specifier, parent) {
|
|
if (!parent) {
|
|
throw new Error(
|
|
'Please pass `parent`: `import-meta-resolve` cannot ponyfill that'
|
|
)
|
|
}
|
|
|
|
try {
|
|
return defaultResolve(specifier, {parentURL: parent}).url
|
|
} catch (error) {
|
|
// See: <https://github.com/nodejs/node/blob/45f5c9b/lib/internal/modules/esm/initialize_import_meta.js#L34>
|
|
const exception = /** @type {ErrnoException} */ (error)
|
|
|
|
if (
|
|
(exception.code === 'ERR_UNSUPPORTED_DIR_IMPORT' ||
|
|
exception.code === 'ERR_MODULE_NOT_FOUND') &&
|
|
typeof exception.url === 'string'
|
|
) {
|
|
return exception.url
|
|
}
|
|
|
|
throw error
|
|
}
|
|
}
|