Skip to content

Commit

Permalink
Register TwentySix.Cloud Components (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmolki authored Apr 15, 2024
1 parent 73d8d22 commit 3f99bec
Show file tree
Hide file tree
Showing 83 changed files with 3,588 additions and 130 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://www.builder.io/c/docs/using-your-api-key
# NEXT_PUBLIC_BUILDER_API_KEY=fd4e1a4bdbc240f0b17c0e77aee16d01
# NEXT_PUBLIC_BUILDER_API_KEY=5da369ee55b9465c91cf36605e655931
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@fortawesome:registry=https://npm.fontawesome.com/
//npm.fontawesome.com/:_authToken=${FONTAWESOME_NPM_AUTH_TOKEN}
38 changes: 37 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,49 @@
import BuilderDevTools from "@builder.io/dev-tools/next";
import twin from "babel-plugin-twin";
import macros from "babel-plugin-macros";
import styledComponents from "babel-plugin-styled-components";
import syntaxTypescript from "@babel/plugin-syntax-typescript";

/** @type {import('next').NextConfig} */
const nextConfig = BuilderDevTools()(
BuilderDevTools()({
reactStrictMode: true,
output: 'export',
output: "export",
images: {
unoptimized: true,
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.(tsx|ts)$/,
use: [
options.defaultLoaders.babel,
{
loader: "babel-loader",
options: {
plugins: [
twin,
macros,
[styledComponents, { ssr: true, displayName: true }],
[syntaxTypescript, { isTSX: true }],
],
},
},
],
});

config.resolve.fallback = {
...(config.resolve.fallback || {}),
fs: false,
module: false,
path: false,
os: false,
crypto: false,
perf_hooks: false,
v8: false,
};

return config;
},
})
);

Expand Down
Loading

0 comments on commit 3f99bec

Please sign in to comment.