Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Handle Other Build Tools #25

Open
apython1998 opened this issue Mar 17, 2023 · 6 comments
Open

How to Handle Other Build Tools #25

apython1998 opened this issue Mar 17, 2023 · 6 comments

Comments

@apython1998
Copy link

Hi,

Currently working to deploy a SvelteKit app to a BrightSign device. SvelteKit is only able to use Vite as a build tool. When building for a NodeJS application, vite generates the following:

build/
-- index.js
-- handler.js
-- shims.js
-- env.js
-- client/
-- server/

In my first attempt, I tried to start the node server by selecting index.js as the entry point, but that didn't work.

With some digging through examples, including this one, I tried to create an index.html that just adds a script tag referencing the index.js as the src. This is also not working.

I'm uploading these files via the Content page using a zip of the build/ directory.

Then I add the content to a presentation, schedule it, and publish it.

When I navigate to the device and take a screenshot all that shows is a black screen and there is one log saying that the index.js or index.html cannot be found

@apython1998
Copy link
Author

Additionally, I have an API key store in a .env file but there is no documentation for Node.js apps that require env vars. Any assistance there would be useful as well!

@apython1998
Copy link
Author

I'm following Appendix A using the alternative method and BA Connected on the desktop application.

I have uploaded the brs file for my application to get it started.

Step 5 of Appendix A doesn't make sense though. There is no file selector to choose the zip from. When I uploaded the index.html using the Content tab, it uploaded everything in the build directory which is good. But I don't know where that will get uploaded in order to reference it in my brs file.

@apython1998
Copy link
Author

Is the brs file here supposed to replace the autorun.brs on the device?

@apython1998
Copy link
Author

There are so many missing pieces between the Node.js docs and here that there are so many places for something to go wrong

@liam-k
Copy link

liam-k commented May 25, 2024

I struggle with the same thing right now. The docs are so severely lacking and this example seems to be so outdated, it’s just horrible. Did you find a solution back then?

@Boost9898
Copy link

BUMP, we also would like to deploy using Vite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants