-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7810e31
commit 1b34f36
Showing
21 changed files
with
208 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,50 @@ | ||
import createJiti from 'jiti' | ||
import {fileURLToPath} from 'node:url' | ||
import withBundleAnalyzer from '@next/bundle-analyzer' | ||
import withPWAInit from '@ducanh2912/next-pwa' | ||
import {withAxiomNextConfig} from 'next-axiom' | ||
import { fileURLToPath } from "node:url"; | ||
import withPWAInit from "@ducanh2912/next-pwa"; | ||
import withBundleAnalyzer from "@next/bundle-analyzer"; | ||
import createJiti from "jiti"; | ||
import { withAxiomNextConfig } from "next-axiom"; | ||
|
||
const withPWA = withPWAInit({ | ||
dest: 'public', | ||
dest: "public", | ||
fallbacks: { | ||
document: '/_offline' | ||
} | ||
}) | ||
document: "/_offline", | ||
}, | ||
}); | ||
|
||
// create the bundle analyzer config | ||
const withMyBundleAnalyzer = withBundleAnalyzer({ | ||
enabled: process.env.ANALYZE === 'true' | ||
}) | ||
enabled: process.env.ANALYZE === "true", | ||
}); | ||
|
||
const jiti = createJiti(fileURLToPath(import.meta.url)) | ||
const jiti = createJiti(fileURLToPath(import.meta.url)); | ||
|
||
/** | ||
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful | ||
* for Docker builds. | ||
* Importing env files here to validate on build | ||
*/ | ||
jiti('./src/env.ts') | ||
jiti('@weatherio/api/env') | ||
jiti("./src/env.ts"); | ||
jiti("@weatherio/api/env"); | ||
|
||
/** @type {import("next").NextConfig} */ | ||
const config = withMyBundleAnalyzer(withPWA( | ||
withAxiomNextConfig({ | ||
reactStrictMode: true, | ||
const config = withMyBundleAnalyzer( | ||
withPWA( | ||
withAxiomNextConfig({ | ||
reactStrictMode: true, | ||
|
||
/** Enables hot reloading for local packages without a build step */ | ||
transpilePackages: ['@weatherio/api', '@weatherio/ui', '@weatherio/types', '@weatherio/city-data'], | ||
i18n: { | ||
defaultLocale: 'en', | ||
locales: ['en', 'de', 'id'] | ||
} | ||
})) | ||
) | ||
/** Enables hot reloading for local packages without a build step */ | ||
transpilePackages: [ | ||
"@weatherio/api", | ||
"@weatherio/ui", | ||
"@weatherio/types", | ||
"@weatherio/city-data", | ||
], | ||
i18n: { | ||
defaultLocale: "en", | ||
locales: ["en", "de", "id"], | ||
}, | ||
}), | ||
), | ||
); | ||
|
||
export default config | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {} | ||
} | ||
} | ||
autoprefixer: {}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
'convex/_generated' | ||
convex/_generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible" | ||
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible"; | ||
|
||
const Collapsible = CollapsiblePrimitive.Root | ||
const Collapsible = CollapsiblePrimitive.Root; | ||
|
||
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger | ||
const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger; | ||
|
||
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent | ||
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent; | ||
|
||
export { Collapsible, CollapsibleTrigger, CollapsibleContent } | ||
export { Collapsible, CollapsibleTrigger, CollapsibleContent }; |
Oops, something went wrong.