Huge number of changes, upgrade to next 15, add loads of pages, auth, add ci, loads of clean up, a db for images etc

This commit is contained in:
2024-10-12 00:35:10 +01:00
parent 7f88af8ee3
commit 81d2cae9c7
42 changed files with 6511 additions and 1440 deletions

View File

@@ -1,20 +1,33 @@
import million from "million/compiler";
import createMDX from '@next/mdx'
import createMDX from "@next/mdx";
/** @type {import('next').NextConfig} */
const nextConfig = {
pageExtensions: ['js', 'jsx', 'md', 'mdx', 'ts', 'tsx'],
swcMinify: true,
pageExtensions: ["js", "jsx", "md", "mdx", "ts", "tsx"],
experimental: {
reactCompiler: true,
ppr: true,
},
serverExternalPackages: ["typeorm"],
reactStrictMode: true,
output: "standalone",
images: {
remotePatterns: [
{
protocol: "https",
hostname: "fly.storage.tigris.dev"
},
],
},
};
const millionConfig = {
auto: { rsc: true }, rsc: true
}
auto: { rsc: true },
rsc: true,
};
const withMDX = createMDX({
// Add markdown plugins here, as desired
})
});
export default withMDX(million.next(nextConfig, millionConfig));