Skip to content

Commit

Permalink
fix issues with vercel build
Browse files Browse the repository at this point in the history
Signed-off-by: Nabarun Pal <[email protected]>
  • Loading branch information
palnabarun committed Sep 14, 2024
1 parent cd9294b commit 735a47b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
1 change: 0 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ module.exports = function (eleventyConfig) {
includes: "_includes",
layouts: "_layouts",
},
pathPrefix: "/2024/",

This comment has been minimized.

Copy link
@bhansa

bhansa Sep 15, 2024

Member

@palnabarun the website is served at /2024/ can you check if the path references will work fine on prod after removing this ?

};
};
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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='/'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**
Expand Down
4 changes: 4 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"build-command": "make prod",
"output-directory": "dist"
}

0 comments on commit 735a47b

Please sign in to comment.