Compare commits
2 Commits
7327795d39
...
2.25.0
| Author | SHA1 | Date | |
|---|---|---|---|
| e91ffd8686 | |||
| 00a86b1206 |
+1
-1
@@ -22,7 +22,7 @@ WORKDIR /app
|
||||
COPY --from=prod-deps /app/node_modules /app/node_modules
|
||||
COPY --from=build /app/dist /app/dist
|
||||
|
||||
LABEL version="2.24.0"
|
||||
LABEL version="2.25.0"
|
||||
LABEL description="Astro based personal website"
|
||||
|
||||
ENV HOST=0.0.0.0
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "site-profile",
|
||||
"type": "module",
|
||||
"version": "2.24.0",
|
||||
"version": "2.25.0",
|
||||
"homepage": "https://www.alexlebens.dev",
|
||||
"bugs": {
|
||||
"url": "https://gitea.alexlebens.dev/alexlebens/site-profile/issues",
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 381 KiB |
@@ -1,21 +0,0 @@
|
||||
import { join } from 'node:path';
|
||||
|
||||
function resolveFilePath(path: string) {
|
||||
if (path.startsWith('/')) {
|
||||
return resolveFilePathPublic(path);
|
||||
}
|
||||
|
||||
return resolveFilePathInternal(path);
|
||||
}
|
||||
|
||||
function resolveFilePathPublic(path: string) {
|
||||
return join(process.cwd(), path);
|
||||
}
|
||||
|
||||
function resolveFilePathInternal(path: string) {
|
||||
const normalizePath = path.startsWith('@') ? path.replace('@', '') : path;
|
||||
|
||||
return join(process.cwd(), 'src/', normalizePath);
|
||||
}
|
||||
|
||||
export { resolveFilePath, resolveFilePathPublic, resolveFilePathInternal };
|
||||
Reference in New Issue
Block a user