Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "3.8"
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: p
MYSQL_DATABASE: talktopdf
volumes:
- db_data:/var/lib/mysql
command: "--default-authentication-plugin=mysql_native_password"
ports:
- "3306:3306"
volumes:
db_data: {}
69 changes: 55 additions & 14 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,67 @@ const nextConfig = {
async redirects() {
return [
{
source: '/sign-in',
destination: '/api/auth/login',
source: "/sign-in",
destination: "/api/auth/login",
permanent: true,
},
{
source: '/sign-up',
destination: '/api/auth/register',
source: "/sign-up",
destination: "/api/auth/register",
permanent: true,
},
]
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "img.clerk.com",
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com",
},
{
protocol: "https",
hostname: "images.unsplash.com",
},
{
protocol: "https",
hostname: "*.hydeparkwinterwonderland.com",
},
{
protocol: "https",
hostname: "*.githubusercontent.com",
},
{
protocol: "https",
hostname: "dummyimage.com",
},
{
protocol: "https",
hostname: "cdn.iconscout.com",
},
{
protocol: "https",
hostname: "images.pexels.com",
},
{
protocol: "https",
hostname: "randomuser.me",
},
{
protocol: "https",
hostname: "oaidalleapiprodscus.blob.core.windows.net",
},
],
},

webpack: (
config,
{ buildId, dev, isServer, defaultLoaders, webpack }
) => {
config.resolve.alias.canvas = false
config.resolve.alias.encoding = false
return config
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.resolve.alias.canvas = false;
config.resolve.alias.encoding = false;
return config;
},
}
};

module.exports = nextConfig
module.exports = nextConfig;
Loading