Skip to content

Commit

Permalink
switch to mjs and ts
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktschwab committed Aug 9, 2024
1 parent 54ad0ba commit 0edd30e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 15 deletions.
12 changes: 5 additions & 7 deletions next.config.js → next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
const withNextra = require('nextra')({
import nextra from "nextra";

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './src/theme.config.tsx',
unstable_staticImage: true,
unstable_flexsearch: {
codeblock: false
}
})

module.exports = withNextra({
export default withNextra({
output: "export",
reactStrictMode: true,
images: {
unoptimized: true
}
})
})
6 changes: 0 additions & 6 deletions postcss.config.js

This file was deleted.

9 changes: 9 additions & 0 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('postcss-load-config').Config} */
const config = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};

export default config;
8 changes: 6 additions & 2 deletions tailwind.config.js → tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
module.exports = {
import type { Config } from "tailwindcss";

const config: Config = {
mode: "jit",
content: [
"./src/components/**/*.js",
"./src/pages/**/*.{md,mdx}",
"./src/theme.config.tsx",
],
};
};

export default config;

0 comments on commit 0edd30e

Please sign in to comment.