diff --git a/.eleventy.js b/.eleventy.js index 33fc13d..9b1b139 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -31,6 +31,5 @@ module.exports = function (eleventyConfig) { includes: "_includes", layouts: "_layouts", }, - pathPrefix: "/2024/", }; }; diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f7a435b --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +.PHONY: prod dev dev-server + +prod: + npx @11ty/eleventy --pathprefix='/2024/' + +dev: + npx @11ty/eleventy --pathprefix='/' + +dev-server: + npx @11ty/eleventy --serve --pathprefix='/' diff --git a/README.md b/README.md index 62c7f63..be8b7fa 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,13 @@ npm install @11ty/eleventy - Run the website locally ```bash -npx @11ty/eleventy --serve --port=8080 +make dev-server ``` ## Production Deployment ```sh -sudo npm run build-prod +sudo make prod ``` **Venue** diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..26570bb --- /dev/null +++ b/vercel.json @@ -0,0 +1,4 @@ +{ + "build-command": "make prod", + "output-directory": "dist" +}