-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/1541 update node migrate cra to vite #246
Changes from all commits
a40c34e
f7dcefb
33c6327
a342974
ff94967
855c043
1fad3ce
8dc47fa
e21aa8c
c6deb9c
4fda734
36d50d3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/// <reference types="vite/client" /> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,17 +29,18 @@ services: | |
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https" | ||
|
||
node: | ||
image: node:14 | ||
image: node:20 | ||
command: yarn start | ||
networks: | ||
- app | ||
working_dir: /app | ||
ports: | ||
- '3000' | ||
environment: | ||
- NODE_ENV=development | ||
volumes: | ||
- .:/app:delegated | ||
healthcheck: | ||
test: [ "CMD", "curl", "-f", "http://node:3000/tags" ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. http://node:3000/tags has never been a page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then remove healthcheck: as well |
||
interval: 5s | ||
timeout: 10s | ||
retries: 3 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="/manifest.json" /> | ||
<title>OS2Display admin</title> | ||
</head> | ||
<body class="bg-light"> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.jsx"></script> | ||
</body> | ||
</html> |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import "~bootstrap/scss/bootstrap"; | ||
@import "bootstrap/scss/bootstrap"; | ||
|
||
html { | ||
height: -webkit-fill-available; | ||
|
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
/* eslint-disable global-require */ | ||
/** Dependencies for Remote Components */ | ||
module.exports = { | ||
resolve: { | ||
react: require("react"), | ||
}, | ||
import react from "react"; | ||
|
||
export const resolve = { | ||
react, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { defineConfig } from "vite"; | ||
import react from "@vitejs/plugin-react"; | ||
import path from 'path'; | ||
|
||
export default defineConfig({ | ||
base: "/", | ||
plugins: [react()], | ||
server: { | ||
strictPort: true, | ||
port: 3000, | ||
host: "localhost", | ||
}, | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will block other from using 0.0.0.0:3000