1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 12:26:40 +07:00

fix images pattern

This commit is contained in:
Fedor Katurov 2025-03-24 15:41:23 +07:00
parent 06cf7050a9
commit 1281a3c595
3 changed files with 30 additions and 26 deletions

View file

@ -13,8 +13,8 @@ steps:
branch:
- master
environment:
NEXT_PUBLIC_API_HOST: https://pig.vault48.org/
NEXT_PUBLIC_REMOTE_CURRENT: https://pig.vault48.org/static/
NEXT_PUBLIC_API_HOST: https://vault48.org/api/
NEXT_PUBLIC_REMOTE_CURRENT: https://vault48.org/static/
NEXT_PUBLIC_PUBLIC_HOST: https://vault48.org/
NEXT_PUBLIC_BOT_USERNAME: vault48bot
settings:

View file

@ -2,6 +2,6 @@
# NEXT_PUBLIC_REMOTE_CURRENT=https://pig.staging.vault48.org/static/
# NEXT_PUBLIC_API_HOST=http://localhost:7777/
# NEXT_PUBLIC_REMOTE_CURRENT=http://localhost:7777/static/
NEXT_PUBLIC_API_HOST=https://pig.vault48.org/
NEXT_PUBLIC_REMOTE_CURRENT=https://pig.vault48.org/static/
NEXT_PUBLIC_API_HOST=https://vault48.org/api/
NEXT_PUBLIC_REMOTE_CURRENT=https://vault48.org/static/
NEXT_PUBLIC_BOT_USERNAME=vault48testbot

View file

@ -2,7 +2,10 @@
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
const withTM = require('next-transpile-modules')(['ramda', '@v9v/ts-react-telegram-login']);
const withTM = require('next-transpile-modules')([
'ramda',
'@v9v/ts-react-telegram-login',
]);
module.exports = withBundleAnalyzer(
withTM({
@ -10,36 +13,37 @@ module.exports = withBundleAnalyzer(
async rewrites() {
return [
{
source: '/post:id',
// everything except 'post' is for backwards compatibility here
source: '/(post|photo|blog|song|video|cell):id',
destination: '/node/:id',
},
{
source: '/~:username',
destination: '/profile/:username',
}
},
];
},
/** don't try to optimize fonts */
optimizeFonts: false,
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '*.vault48.org',
pathname: '/**',
},
{
protocol: 'https',
hostname: '*.ytimg.com',
pathname: '/**',
},
{
protocol: 'http',
hostname: 'localhost',
pathname: '/**',
},
],
},
})
remotePatterns: [
{
protocol: 'https',
hostname: 'vault48.org',
pathname: '/static/**',
},
{
protocol: 'https',
hostname: '*.ytimg.com',
pathname: '/**',
},
{
protocol: 'http',
hostname: 'localhost',
pathname: '/**',
},
],
},
}),
);