mirror of
https://github.com/stonith404/pingvin-share.git
synced 2024-11-05 07:20:13 +01:00
b9f6e3bd08
* Started adding locale translations :) * Added some more translations * Working on translating even more pages * More translations * Added test default locale retrieval * replace `intl.formatMessage` with custom `t` hook * add more translations * improve title syntax * add more translations * translate admin config page * translated error messages * add language selecter * minor fixes * improve language handling * add upcoming languages * add `crowdin.yml` * run formatter --------- Co-authored-by: Steve Tautonico <stautonico@gmail.com>
25 lines
529 B
JavaScript
25 lines
529 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const { version } = require('./package.json');
|
|
|
|
const withPWA = require("next-pwa")({
|
|
dest: "public",
|
|
disable: process.env.NODE_ENV === "development",
|
|
reloadOnOnline: false,
|
|
runtimeCaching: [
|
|
{
|
|
urlPattern: /^https?.*/,
|
|
handler: 'NetworkOnly',
|
|
},
|
|
],
|
|
reloadOnOnline: false,
|
|
});
|
|
|
|
module.exports = withPWA({
|
|
output: "standalone", env: {
|
|
VERSION: version,
|
|
},
|
|
serverRuntimeConfig: {
|
|
apiURL: process.env.API_URL ?? 'http://localhost:8080',
|
|
},
|
|
});
|