Files
omnivore/packages/web/next.config.js
Jackson Harper 62073290ff Move the newsletters settings page to settings/emails
This naming makes more sense because emails can also be used
for PDF attachments.
2022-02-22 19:39:02 -08:00

141 lines
3.8 KiB
JavaScript

const moduleExports = {
images: {
domains: [
'proxy-demo.omnivore-image-cache.app',
'proxy-dev.omnivore-image-cache.app',
'proxy.omnivore-image-cache.app',
],
},
rewrites: () => [
{ source: '/about', destination: '/static/landing/about.html' },
{
source: '/api/graphql',
destination: `https://api-${process.env.NEXT_PUBLIC_APP_ENV}.omnivore.app/api/graphql`,
},
{
source: '/api/auth/:path*',
destination: `https://api-${process.env.NEXT_PUBLIC_APP_ENV}.omnivore.app/api/auth/:path*`,
},
{
source: '/api/article/save',
destination: `https://api-${process.env.NEXT_PUBLIC_APP_ENV}.omnivore.app/api/article/save`,
},
{
source: '/api/mobile-auth/:path*',
destination: `https://api-${process.env.NEXT_PUBLIC_APP_ENV}.omnivore.app/api/mobile-auth/:path*`,
},
],
async redirects() {
return [
{
source: '/feedback',
destination: '/support',
permanent: true,
},
{
source: '/contact',
destination: '/support',
permanent: true,
},
{
source: '/settings/subscriptions/newsletters',
destination: '/settings/emails',
permanent: true,
},
{
source: '/static/icons/default/favicon-dark.ico',
destination: '/favicon-dark.ico',
permanent: true,
},
{
source: '/static/icons/default/favicon-light.ico',
destination: '/favicon.ico',
permanent: true,
},
{
source: '/static/icons/pwa/default-large.png',
destination: '/pwa-512.png',
permanent: true,
},
{
source: '/static/icons/pwa/default-maskable-large.png',
destination: '/pwa-maskable-512.png',
permanent: true,
},
{
source: '/static/icons/pwa/default-maskable.png',
destination: '/pwa-maskable-192.png',
permanent: true,
},
{
source: '/static/icons/pwa/default.png',
destination: '/pwa-192.png',
permanent: true,
},
{
source: '/static/icons/pwa/icon-default.png',
destination: '/pwa-maskable-192.png',
permanent: true,
},
{
source: '/SECURITY.md',
destination: '/.well-known/security.txt',
permanent: true,
},
{
source: '/security.md',
destination: '/.well-known/security.txt',
permanent: true,
},
{
source: '/security.txt',
destination: '/.well-known/security.txt',
permanent: true,
},
{
source: '/hackers.txt',
destination: '/.well-known/security.txt',
permanent: true,
},
{
source: '/install/chrome',
destination:
'https://chrome.google.com/webstore/detail/omnivore/blkggjdmcfjdbmmmlfcpplkchpeaiiab/',
permanent: true,
},
{
source: '/install/firefox',
destination: 'https://addons.mozilla.org/en-US/firefox/addon/omnivore/',
permanent: true,
},
{
source: '/install/edge',
destination:
'https://microsoftedge.microsoft.com/addons/detail/omnivore/ipebjboljeobckndaookadioffchlnih',
permanent: true,
},
{
source: '/install/ios',
destination:
'https://apps.apple.com/us/app/omnivore-read-highlight-share/id1564031042',
permanent: true,
},
{
source: '/install/mac',
destination:
'https://apps.apple.com/us/app/omnivore-read-highlight-share/id1564031042',
permanent: true,
},
{
source: '/install/safari',
destination:
'https://apps.apple.com/us/app/omnivore-read-highlight-share/id1564031042',
permanent: true,
},
]
},
}
module.exports = moduleExports