-
this is my workflows file. name: Create Preview Site
on:
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
pages: write
deployments: write
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: yarn install && yarn build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist/
preview-branch: gh-pages
umbrella-dir: pr-preview/
action: auto and this is my But I can not access my How can I access |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
It looks like the URL you're trying to access is This could be a duplicate of #14 if the issue is caused by the preview URL not being reflected in the site's build process. You might be able to use a similar solution to the one I suggested there. Otherwise, would you be able to clarify on where exactly this issue is being caused? |
Beta Was this translation helpful? Give feedback.
-
I did change my url on But, as you can see, It does not load all the files. But, in I think, It does not load all the file. What can I do? |
Beta Was this translation helpful? Give feedback.
-
I took a look at your repository. Your gh-pages branch contains previews for both PR 22 and PR 24, so I'm convinced the issue is not being caused by this Action but by your setup around it. There's still a documentation task for me to complete but that's covered by #14, so I will be closing this issue. On The first JS file was loaded correctly, so we can assume Vite is respecting the new I've never personally used React or React Router myself, so I can't say for sure that this is the issue. But try changing |
Beta Was this translation helpful? Give feedback.
-
I think, I made it in the end🎉 As you said, Thank you for your help, and your wonderful work. |
Beta Was this translation helpful? Give feedback.
-
I'm currently facing a similar issue with VueJS and can't figure out how to sort it out. My preview is located under Any idea on how to resolve the issue without compromising my production build? |
Beta Was this translation helpful? Give feedback.
I took a look at your repository.
Your gh-pages branch contains previews for both PR 22 and PR 24, so I'm convinced the issue is not being caused by this Action but by your setup around it. There's still a documentation task for me to complete but that's covered by #14, so I will be closing this issue.
On
https://capstone-design-fkiller.github.io/client/pr-preview/pr-24/
I saw that the main JS file appeared in the network log and was executed, but it never imported the items that were loaded withReact.lazy
:https://github.com/capstone-design-Fkiller/client/blob/71344a931898bed752fb5b9baa875559cd586948/src/App.tsx#L8-L10
The first JS file was loaded correctly, so we can assume Vite is res…