Skip to content

Commit 3e9a086

Browse files
committed
chore: only show s34 on dev
1 parent cd538ab commit 3e9a086

File tree

2 files changed

+13
-26
lines changed

2 files changed

+13
-26
lines changed

app/pages/translate/outlines/index.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
/>
88

99
<UPageBody>
10-
<UFileUpload
11-
v-model="jwpubFile"
12-
:file-delete="false"
13-
accept=".jwpub,.JWPUB"
14-
class="w-full min-h-48"
15-
:disabled="!!jwpubFile"
16-
label="Importeer vanuit S-34 formulier."
17-
@change="importOutlines"
18-
/>
10+
<DevOnly>
11+
<UFileUpload
12+
v-model="jwpubFile"
13+
:file-delete="false"
14+
accept=".jwpub,.JWPUB"
15+
class="w-full min-h-48"
16+
:disabled="!!jwpubFile"
17+
label="Importeer vanuit S-34 formulier."
18+
@change="importOutlines"
19+
/>
20+
</DevOnly>
1921
<template v-if="loading">
2022
<UPageGrid>
2123
<div v-for="i in 12" :key="i" class="grid gap-2">

nuxt.config.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
// import { join } from "node:path";
2-
// import { normalizePath } from "vite";
3-
// import { viteStaticCopy } from "vite-plugin-static-copy";
1+
const isDev = process.env.NODE_ENV === "development";
42

53
/* eslint-disable perfectionist/sort-objects */
64
// https://nuxt.com/docs/api/configuration/nuxt-config
@@ -16,25 +14,12 @@ export default defineNuxtConfig({
1614
],
1715
css: ["~/assets/css/main.css"],
1816
runtimeConfig: {
17+
public: { isDev },
1918
jwpubKey: process.env.JWPUB_KEY,
2019
},
2120
compatibilityDate: "2026-01-15",
2221
piniaPluginPersistedstate: {
2322
storage: "localStorage",
2423
debug: true,
2524
},
26-
vite: {
27-
// plugins: [
28-
// viteStaticCopy({
29-
// targets: [
30-
// {
31-
// src: normalizePath(
32-
// join(__dirname, "node_modules/sql.js/dist/sql-wasm.wasm"),
33-
// ),
34-
// dest: normalizePath(join(__dirname, "server/assets")),
35-
// },
36-
// ],
37-
// }),
38-
// ],
39-
},
4025
});

0 commit comments

Comments
 (0)