diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000..cc7331bf --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ +# https://www.gitpod.io integration +tasks: + - name: astro-build + before: npm install && npm run build + init: npm run dev + command: gp await-port 3000 && gp preview $(gp url 3000) + +ports: + - port: 3000 + onOpen: open-browser + visibility: public diff --git a/README.md b/README.md index 7bcefe4a..9ebfbd9f 100644 --- a/README.md +++ b/README.md @@ -3,3 +3,7 @@ Feel free to contribute! The content is mostly Markdown files bopped into the appropriate folders. Site is built on [Astro](https://astro.build/). You should be able to pull it, `npm install`, and `npm run dev` and it'll come up. + +You can also use Gitpod to get an online instance. + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/CSS-Tricks/serverless)