File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed
Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ const htmlmin = require("html-minifier");
22const markdownIt = require ( 'markdown-it' ) ;
33const 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
88module . 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 ,
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- const isPages = process . env . ELEVENTY_ENV === 'pages '
1+ const isPord = process . env . ELEVENTY_ENV === 'prod '
22
33module . exports = {
4- baseUrl : isPages
5- ? '/11ty-landing-page /'
4+ baseUrl : isPord
5+ ? '/inpycon2025 /'
66 : '/'
77}
You can’t perform that action at this time.
0 commit comments