Prepare for deployment

This commit is contained in:
Thibault “Adædra” Hamel 2024-06-12 17:58:42 +02:00
parent bdec4993ab
commit e2b1d0b51d
4 changed files with 3187 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
/dist/
/node_modules/
/tmp/
/.env
/swa-cli.config.json

View File

@ -54,8 +54,8 @@ const extractImages = (gulp, file) => () => (tree) => {
});
};
const asset = PRODUCTION
? (path) => join("https://assets.adaedra.eu/", path)
const asset = env.ASSETS_HOSTS
? (path) => new URL(path, env.ASSETS_HOSTS).toString()
: (path) => join("/_assets/", path);
const renderArticle = () => {

3182
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -22,6 +22,7 @@
"unified": "^11.0.4"
},
"devDependencies": {
"@azure/static-web-apps-cli": "^1.1.8",
"@types/express": "^4.17.21",
"@types/gulp": "^4.0.17",
"@types/luxon": "^3.4.2",