Code Monkey home page Code Monkey logo

Comments (7)

rezk2ll avatar rezk2ll commented on August 11, 2024

hello @piavgh I can't seem to reproduce this, can you please provide what SPA you tested with?

from esn-frontend-common-libs.

piavgh avatar piavgh commented on August 11, 2024

Hi @rezk2ll ,

As Michael confirmed that our SPAs will be deployed on the same domain with the backend API. I think it will not be a problem for us anymore.

The reason behind it is: in some .pug files or .css files, we link to this /images/white-logo.svg using src="/images/white-logo.svg" or url(...), so if the SPA and backend API are on different domains, this request will be 404 not found.

But now they are on the same domain (e.x localhost:8080 or abc.com), when it requests to 'images/white-logo.svg', the backend API can still return the data.

I will close this issue

from esn-frontend-common-libs.

tanandy avatar tanandy commented on August 11, 2024

we need this to split the domain, backend and frontend wont be on the same domain

from esn-frontend-common-libs.

tanandy avatar tanandy commented on August 11, 2024

https://github.com/OpenPaaS-Suite/esn-frontend-common-libs/search?p=1&q=%2Fimages

from esn-frontend-common-libs.

tanandy avatar tanandy commented on August 11, 2024

we need first to migrate static ressources on each SPA

from esn-frontend-common-libs.

fabienmoyon avatar fabienmoyon commented on August 11, 2024

We now want to deployed SPAs on different domains that the the backend API

context

#104 (comment)

TO DO

All assets must be use the SPA name output.

  • fix the white-logo.svg problem
  • fix the socket.io.js not found
  • update outputs images in a /images/ folder ( hashed names to avoid files with the same name replacing each other )

Need to done on each SPA :

  • inbox
  • mailto
  • calendar
  • calendar public
  • contact
  • account
  • admin

from esn-frontend-common-libs.

fabienmoyon avatar fabienmoyon commented on August 11, 2024

After investigation, we need also to add the tiny logo and the throbber-amber.svg like it was done for the white-logo here : https://github.com/rezk2ll/esn-frontend-contacts/blob/92ac91cf7615ad692a13b581ad802b70f56a6562/webpack.commons.js#L82 and here for the throbber-amber.svg here : https://github.com/linagora/esn-frontend-calendar-public/pull/32/files?file-filters%5B%5D=.js

  • inbox
  • mailto
  • calendar
  • calendar public
  • contact
  • account
  • admin

from esn-frontend-common-libs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.