Closed Gavinok closed 1 year ago
To mimic a production scenario, run yarn build
followed by yarn serve
. The output in the browser should be what is produced in a production static build of the application.
There doesn't seem to be a yarn serve configured as of now. Instead I ran npx vite --base ./dist/
and it displayed the image as expected. I assume the issue had more to do with the change needed to the github action which this PR should resolve.
Just for posterity the command to run was yarn build
followed by yarn preview
.
This should resolve the missing image asset in #52 . I haven't managed to test this yet. Alternatively I can simply have the npm scripts copy the directory themselves to the
dist
. To me this seems like a cleaner solution.