fix: mercureUrl for prod
This commit is contained in:
parent
d4142012ec
commit
c6bd6ba549
@@ -30,7 +30,7 @@ export default class extends Controller {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const mercureHubUrl = 'https://localhost/.well-known/mercure';
|
const mercureHubUrl = 'https://mangarr.test.nestor-server.fr/.well-known/mercure';
|
||||||
const eventSource = new EventSource(`${mercureHubUrl}?topic=activity`);
|
const eventSource = new EventSource(`${mercureHubUrl}?topic=activity`);
|
||||||
|
|
||||||
eventSource.onmessage = (event) => {
|
eventSource.onmessage = (event) => {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default class extends Controller {
|
|||||||
this.currentPage = 0;
|
this.currentPage = 0;
|
||||||
this.totalPages = 0;
|
this.totalPages = 0;
|
||||||
|
|
||||||
const mercureHubUrl = 'https://localhost/.well-known/mercure';
|
const mercureHubUrl = 'https://mangarr.test.nestor-server.fr/.well-known/mercure';
|
||||||
this.eventSource = new EventSource(`${mercureHubUrl}?topic=activity`);
|
this.eventSource = new EventSource(`${mercureHubUrl}?topic=activity`);
|
||||||
|
|
||||||
this.eventSource.onmessage = this.handleMessage.bind(this);
|
this.eventSource.onmessage = this.handleMessage.bind(this);
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ export default class extends Controller {
|
|||||||
// ...
|
// ...
|
||||||
connect() {
|
connect() {
|
||||||
const topic = this.data.get('topic');
|
const topic = this.data.get('topic');
|
||||||
const mercureHubUrl = 'https://localhost/.well-known/mercure';
|
const mercureHubUrl = 'https://mangarr.test.nestor-server.fr/.well-known/mercure';
|
||||||
const eventSource = new EventSource(`${mercureHubUrl}?topic=${topic}`);
|
const eventSource = new EventSource(`${mercureHubUrl}?topic=${topic}`);
|
||||||
|
|
||||||
eventSource.onmessage = (event) => {
|
eventSource.onmessage = (event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user