Fix: Korrigiere Environment-Variablen und entferne dist/ aus Git
- .env.local: Verwendet localhost:3001 für lokale Entwicklung - .env.server: Verwendet wss:// für Produktionsumgebung - Entferne backend/dist/ aus Git-Tracking - Erweitere .gitignore um backend/dist/
This commit is contained in:
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
.gitignore
|
||||||
|
.env
|
||||||
|
node_modules
|
||||||
|
node_modules/*
|
||||||
|
backend/.env
|
||||||
|
backend/images
|
||||||
|
backend/images/*
|
||||||
|
backend/node_modules
|
||||||
|
backend/node_modules/*
|
||||||
|
frontend/.env
|
||||||
|
frontend/node_modules
|
||||||
|
frontend/node_modules/*
|
||||||
|
frontend/dist
|
||||||
|
frontend/dist/*
|
||||||
|
frontedtree.txt
|
||||||
|
backend/dist/
|
||||||
1
backend/dist/index.html
vendored
1
backend/dist/index.html
vendored
@@ -1 +0,0 @@
|
|||||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><title>YourPart</title><script defer="defer" src="/js/chunk-vendors.e0723df7.js"></script><script defer="defer" src="/js/app.989c1f98.js"></script></head><body><div id="app"></div></body></html>
|
|
||||||
2
backend/dist/js/app.989c1f98.js
vendored
2
backend/dist/js/app.989c1f98.js
vendored
@@ -1,2 +0,0 @@
|
|||||||
(()=>{"use strict";var e={855:(e,t,n)=>{var s=n(756),r=n(641),o=n(33),a=n(751);function i(e,t,n,s,i,u){return(0,r.uX)(),(0,r.CE)("div",null,[((0,r.uX)(!0),(0,r.CE)(r.FK,null,(0,r.pI)(i.messages,(e=>((0,r.uX)(),(0,r.CE)("div",{key:e.id},(0,o.v_)(e.text),1)))),128)),(0,r.bo)((0,r.Lk)("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>i.newMessage=e),onKeyup:t[1]||(t[1]=(0,a.jR)(((...e)=>u.sendMessage&&u.sendMessage(...e)),["enter"]))},null,544),[[a.Jo,i.newMessage]])])}var u=n(373);const l={data(){return{socket:null,messages:[],newMessage:""}},created(){this.socket=(0,u.Ay)("http://localhost:3001"),this.socket.on("newMessage",(e=>{this.messages.push(e)})),fetch("/api/chat/messages").then((e=>e.json())).then((e=>{this.messages=e}))},methods:{sendMessage(){if(""!==this.newMessage.trim()){const e={id:Date.now(),text:this.newMessage};this.socket.emit("newMessage",e),this.newMessage=""}}}};var d=n(262);const c=(0,d.A)(l,[["render",i]]),f=c;s["default"].config.productionTip=!1,new s["default"]({render:e=>e(f)}).$mount("#app")}},t={};function n(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,n),o.exports}n.m=e,(()=>{var e=[];n.O=(t,s,r,o)=>{if(!s){var a=1/0;for(d=0;d<e.length;d++){for(var[s,r,o]=e[d],i=!0,u=0;u<s.length;u++)(!1&o||a>=o)&&Object.keys(n.O).every((e=>n.O[e](s[u])))?s.splice(u--,1):(i=!1,o<a&&(a=o));if(i){e.splice(d--,1);var l=r();void 0!==l&&(t=l)}}return t}o=o||0;for(var d=e.length;d>0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[s,r,o]}})(),(()=>{n.d=(e,t)=>{for(var s in t)n.o(t,s)&&!n.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})}})(),(()=>{n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()})(),(()=>{n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})(),(()=>{n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}})(),(()=>{var e={524:0};n.O.j=t=>0===e[t];var t=(t,s)=>{var r,o,[a,i,u]=s,l=0;if(a.some((t=>0!==e[t]))){for(r in i)n.o(i,r)&&(n.m[r]=i[r]);if(u)var d=u(n)}for(t&&t(s);l<a.length;l++)o=a[l],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},s=self["webpackChunkfrontend"]=self["webpackChunkfrontend"]||[];s.forEach(t.bind(null,0)),s.push=t.bind(null,s.push.bind(s))})();var s=n.O(void 0,[504],(()=>n(855)));s=n.O(s)})();
|
|
||||||
//# sourceMappingURL=app.989c1f98.js.map
|
|
||||||
1
backend/dist/js/app.989c1f98.js.map
vendored
1
backend/dist/js/app.989c1f98.js.map
vendored
File diff suppressed because one or more lines are too long
23
backend/dist/js/chunk-vendors.e0723df7.js
vendored
23
backend/dist/js/chunk-vendors.e0723df7.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,5 @@
|
|||||||
VITE_API_BASE_URL=https://www.your-part.de
|
VITE_API_BASE_URL=https://www.your-part.de
|
||||||
VITE_TINYMCE_API_KEY=xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg
|
VITE_TINYMCE_API_KEY=xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg
|
||||||
VITE_DAEMON_SOCKET=ws://www.your-part.de:2020
|
VITE_DAEMON_SOCKET=wss://www.your-part.de:2020
|
||||||
VITE_CHAT_WS_URL=ws://www.your-part.de:1235
|
VITE_CHAT_WS_URL=wss://www.your-part.de:1235
|
||||||
|
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ VITE_API_BASE_URL=https://www.your-part.de
|
|||||||
VITE_TINYMCE_API_KEY=xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg
|
VITE_TINYMCE_API_KEY=xjqnfymt2wd5q95onkkwgblzexams6l6naqjs01x72ftzryg
|
||||||
VITE_DAEMON_SOCKET=wss://www.your-part.de:2020
|
VITE_DAEMON_SOCKET=wss://www.your-part.de:2020
|
||||||
VITE_CHAT_WS_URL=wss://www.your-part.de:1235
|
VITE_CHAT_WS_URL=wss://www.your-part.de:1235
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user