I am hosting this open source website running on this domain: www.xinthose.com. The website loads on Google Chrome, but not Firefox (no error message). The Elastic Beanstalk URL does load though: http://xinthose2-env.eba-4qavumcw.us-east-2.elasticbeanstalk.com/home. Can anyone help me to understand this please? Here is my browserslist
:
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-11 # For IE 9-11 support, remove 'not'.
AWS EC2 automatically runs the website with node server.js
"use strict";
const express = require("express");
const compression = require('compression');
// config
const port = process.env.PORT || 3000;
const app_folder = "./";
const options = {
dotfiles: 'ignore',
etag: false,
extensions: ['html', 'js', 'scss', 'css'],
index: false,
maxAge: '1y',
redirect: true,
}
// create app
const app = express();
app.use(compression());
app.use(express.static(app_folder, options));
// serve angular paths
app.all('*', function (req, res) {
res.status(200).sendFile(`/`, {root: app_folder});
});
// start listening
app.listen(port, function () {
console.log("Node Express server for " + app.name + " listening on http://localhost:" + port);
});
My Firefox is up to date: version 80.0.1 (64 bit). Is Firefox more strict on JavaScript use? Do I need to change something in server.js
?
Beanstalk setup:
http://xinthose.com
, nothttp://www.xinthose.com
– Marcin