Skip to content

Commit 89112cc

Browse files
committed
config cleanup
1 parent 8f15c78 commit 89112cc

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

app/routes/MdxRoute.res

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ let communityTableOfContents = async () => {
123123
->groupBySection
124124
->Dict.mapValues(values => values->sortSection->convertToNavItems("/community"))
125125

126-
Console.log(groups)
127-
128126
// these are the categories that appear in the sidebar
129127
let categories: array<SidebarLayout.Sidebar.Category.t> = getAllGroups(groups, ["Resources"])
130128

src/SyntaxLookup.res

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ type itemInfo = {
9494
module Tag = {
9595
@react.component
9696
let make = (~deprecated: bool, ~text: string, ~id: string, ~href) => {
97-
// Console.log(id)
9897
<ReactRouter.Link.String
9998
to={"/syntax-lookup/" ++ href}
10099
className={`

vite.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ import env from 'vite-plugin-env-compatible'
66
export default defineConfig({
77
plugins: [
88
tailwindcss(),
9-
reactRouter({
10-
ssr: true,
11-
}),
12-
env({ prefix: 'PUBLIC_' })
9+
reactRouter(),
10+
env({ prefix: 'PUBLIC_' }) // this is to make it so babel doesn't break when trying to acess process.env in the client
1311
],
1412
build: {
15-
sourcemap: true
13+
// Having these on helps with local development
14+
sourcemap: process.env.NODE_ENV !== 'production',
1615
},
1716
css: {
1817
transformer: 'lightningcss',

0 commit comments

Comments
 (0)