Skip to content

Commit

Permalink
this should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Ko71k committed Dec 14, 2024
1 parent 4c17467 commit 2d8e20c
Show file tree
Hide file tree
Showing 8 changed files with 318 additions and 6,717 deletions.
5 changes: 2 additions & 3 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Используем официальный образ Node.js версии 20
FROM node:20.17.0
FROM node:20-alpine

# Устанавливаем рабочую директорию
WORKDIR /app
Expand All @@ -20,4 +19,4 @@ RUN npm run build
EXPOSE 80

# Команда для запуска приложения
CMD ["npm", "start"]
CMD ["npm", "start"]
5,970 changes: 303 additions & 5,667 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Репозиторий команды \"Команда 7\", проект KudaGo",
"main": "index.js",
"scripts": {
"build": "webpack",
"start": "webpack serve --open --host 127.0.0.1",
"build": "webpack --mode production",
"start": "webpack serve --host 0.0.0.0",
"watch": "webpack --watch",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "npx eslint",
Expand All @@ -32,7 +32,6 @@
"@babel/preset-env": "^7.26.0",
"@babel/preset-typescript": "^7.26.0",
"@eslint/js": "^9.11.1",
"@types/dompurify": "^3.2.0",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"babel-loader": "^9.2.1",
Expand All @@ -54,7 +53,6 @@
"cors": "^2.8.5",
"dompurify": "^3.2.3",
"express": "^4.21.1",
"minimist": "^1.2.8",
"node": "^22.9.0"
"minimist": "^1.2.8"
}
}
1,043 changes: 2 additions & 1,041 deletions public/dist/bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions public/dist/bundle.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/*! @license DOMPurify 3.2.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.3/LICENSE */

/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
Binary file added public/dist/images/location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/dist/images/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ module.exports = {
devServer: {
static: {
directory: path.join(__dirname, 'public'),
publicPath: '/'
},
proxy: [{
context: ['/api'],
Expand All @@ -76,7 +77,10 @@ module.exports = {
port: 80,
host: '0.0.0.0',
allowedHosts: 'all',
historyApiFallback: true
historyApiFallback: {
index: '/index.html'
},
hot: true,
},
plugins: [
new webpack.ProvidePlugin({
Expand Down

0 comments on commit 2d8e20c

Please sign in to comment.