-
Notifications
You must be signed in to change notification settings - Fork 65
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
Add devcontainers configuration #1212
base: staging
Are you sure you want to change the base?
Conversation
Also, I'm not facing the |
how do you test? using vscode locally or using something like codespaces? |
Currently, I'm testing using codespaces. I'm facing an issue where the frontend crashes right after startup, I've tried to change the logging level to
|
got it working without crashing, only thing left is fix the CORS & WSS issues:
|
nuxt has an https/ssl mode somewhere iirc |
sadly this is the only way of getting this to work.
it's attempting to connect to localhost:24678, but the codespaces syntax includes the port in the host, might need to manually override this, as it's preventing hmr from working at all.
Not working because of the way Codespaces exposes ports (in the hostname, not as an "real" port), I had to change this in -- const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl.hostname}:${hmrPort || importMetaUrl.port}${__HMR_BASE__}`;
++ const socketHost = `${__HMR_HOSTNAME__ || importMetaUrl}${__HMR_BASE__}`; This could be fixed by forking the module, or by applying an patch. Even if we set |
needs fixing: http proxy error:Error: write EPROTO 00178A8AFB7E0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355
Allows the quick creation of GitHub Codespaces & others that support devcontainers by adding an
.devcontainers/devcontainer.json
file containing port labelling, VSCode extensions, and the required features to get an bare-bones Hangar application working (database and email Docker containers, Maven dependencies for the backend application and PNPM dependencies for the frontend), which are setup by anpost-create.sh
Shell script. This allows developers to get coding faster, rather than spend time setting up their development environments.