Makes the webpack build use relative paths to allow for deploying on web subdirectories
Some checks are pending
build-docker / Build Image (push) Waiting to run
Some checks are pending
build-docker / Build Image (push) Waiting to run
This commit is contained in:
parent
f77bcbadb7
commit
ea8c3bf602
10 changed files with 74 additions and 36 deletions
|
|
@ -3,6 +3,7 @@ import STATUS from './status.mjs';
|
|||
import WeatherDisplay from './weatherdisplay.mjs';
|
||||
import { registerDisplay } from './navigation.mjs';
|
||||
import { debugFlag } from './utils/debug.mjs';
|
||||
import { withBasePath } from './utils/base-path.mjs';
|
||||
|
||||
const STORIES_PER_PAGE = 2;
|
||||
const PAGE_DURATION_MS = 9000;
|
||||
|
|
@ -17,7 +18,7 @@ class LinuxNews extends WeatherDisplay {
|
|||
if (!super.getData(weatherParameters, refresh)) return;
|
||||
|
||||
try {
|
||||
const response = await safeJson('/api/linux-news', {
|
||||
const response = await safeJson(withBasePath('api/linux-news'), {
|
||||
retryCount: 0,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue