How to publish generated files on web?

Can I just upload files from Needle/CollaborativeSandbox/ to ftp, or I have to licence it first? Just for test right now. And point to index.html?

Original Post on Discord

by user 869976161550217286

All seems to be working on a local server, but not at ftp, its just black window

by user 869976161550217286

my chrome console says: in.ts:1 Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of “text/plain”. Strict MIME type checking is enforced for module scripts per HTML spec.
gen.js:1 GET https://virtual.miss3.cz/test4/src/generated/register_types net::ERR_ABORTED 404 (Not Found)

by user 869976161550217286

You need to build the project to upload it. Here are some options: https://docs.needle.tools/deployment

From the log it reads like you just uploaded the files you have in your web project but you actually need to build it and then what you upload is in the distfolder in your web project. The docs give you a few options

ahh, thnx will go trough

by user 869976161550217286

ah so its simmilar to npm build in VS

by user 869976161550217286

Exactly :slightly_smiling_face:

ok, thx

by user 869976161550217286