feat: add Service api with interface
This commit is contained in:
parent
ab7a02bcca
commit
a440f954ad
35 changed files with 1027 additions and 23 deletions
|
|
@ -1,11 +1,11 @@
|
|||
import withBundleAnalyzer from "@next/bundle-analyzer"
|
||||
import withPlugins from "next-compose-plugins"
|
||||
import { env } from "./env.mjs"
|
||||
import withBundleAnalyzer from "@next/bundle-analyzer";
|
||||
import withPlugins from "next-compose-plugins";
|
||||
import { env } from "./env.mjs";
|
||||
|
||||
/**
|
||||
* @type {import('next').NextConfig}
|
||||
*/
|
||||
const config = withPlugins([[withBundleAnalyzer({ enabled: env.ANALYZE })]], {
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
experimental: { instrumentationHook: false },
|
||||
env: {
|
||||
|
|
@ -14,15 +14,23 @@ const config = withPlugins([[withBundleAnalyzer({ enabled: env.ANALYZE })]], {
|
|||
REACT_APP_API_KEY: process.env.REACT_APP_API_KEY,
|
||||
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
|
||||
},
|
||||
|
||||
rewrites() {
|
||||
return [
|
||||
{ source: "/healthz", destination: "/api/health" },
|
||||
{ source: "/api/healthz", destination: "/api/health" },
|
||||
{ source: "/health", destination: "/api/health" },
|
||||
{ source: "/ping", destination: "/api/health" },
|
||||
]
|
||||
];
|
||||
},
|
||||
})
|
||||
};
|
||||
|
||||
export default config
|
||||
export default withPlugins(
|
||||
[
|
||||
[
|
||||
withBundleAnalyzer({
|
||||
enabled: env.ANALYZE === "true",
|
||||
}),
|
||||
],
|
||||
],
|
||||
nextConfig
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue