Skip to content

Commit

Permalink
Use a path prefix for PR previews
Browse files Browse the repository at this point in the history
Signed-off-by: Olaf Lessenich <[email protected]>
  • Loading branch information
xai committed Apr 3, 2024
1 parent 7fcafd8 commit 07f1864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build website
run: |
npm install
npm run build
PATH_PREFIX="pr-previews/${{ github.event.number }}" npm run build -- --prefix-paths
- name: Upload artifact
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 #v4
with:
Expand Down
1 change: 1 addition & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
pathPrefix: process.env.PATH_PREFIX,
siteMetadata: {
title: 'Theia - Cloud and Desktop IDE Platform',
description: "Theia is an open-source cloud &nbsp; desktop IDE framework implemented in TypeScript."
Expand Down

0 comments on commit 07f1864

Please sign in to comment.