Skip to content

Commit 21848cd

Browse files
committed
clean up package.json and other files
1 parent ce328fd commit 21848cd

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.eleventy.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const htmlmin = require("html-minifier");
22
const markdownIt = require('markdown-it');
33
const pluginRss = require("@11ty/eleventy-plugin-rss");
44

5-
const isPages = process.env.ELEVENTY_ENV === 'pages'
6-
const outDir = isPages ? 'docs' : 'public'
5+
const isProd = process.env.ELEVENTY_ENV === 'prod'
6+
const outDir = 'public'
77

88
module.exports = function (eleventyConfig) {
99
// PLUGINS
@@ -53,6 +53,7 @@ module.exports = function (eleventyConfig) {
5353
});
5454

5555
return {
56+
pathPrefix: isProd ? "inpycon2025" : "",
5657
dir: {
5758
input: 'src',
5859
output: outDir,

.github/workflows/eleventy_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: npm ci
2828

2929
- name: Build site with Eleventy
30-
run: npm run deploy # Ensure this script is set up in package.json
30+
run: npm run deploy-prod # Ensure this script is set up in package.json
3131

3232
- name: Upload artifact for deployment
3333
id: dep

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"serve": "ELEVENTY_ENV=dev eleventy --serve",
77
"deploy": "eleventy",
8-
"deploy-pgs": "ELEVENTY_ENV=pages eleventy"
8+
"deploy-prod": "ELEVENTY_ENV=prod eleventy"
99
},
1010
"author": "ttntm",
1111
"license": "MIT",

src/_data/env.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
const isPages = process.env.ELEVENTY_ENV === 'pages'
1+
const isPord = process.env.ELEVENTY_ENV === 'prod'
22

33
module.exports = {
4-
baseUrl: isPages
5-
? '/11ty-landing-page/'
4+
baseUrl: isPord
5+
? '/inpycon2025/'
66
: '/'
77
}

0 commit comments

Comments
 (0)