x
This commit is contained in:
parent
6ebd6e0ed1
commit
de9695af0e
@ -1,42 +0,0 @@
|
||||
# Nuxt 3 Minimal Starter
|
||||
|
||||
Look at the [Nuxt 3 documentation](https://nuxt.com/docs/getting-started/introduction) to learn more.
|
||||
|
||||
## Setup
|
||||
|
||||
Make sure to install the dependencies:
|
||||
|
||||
```bash
|
||||
# yarn
|
||||
yarn install
|
||||
|
||||
# npm
|
||||
npm install
|
||||
|
||||
# pnpm
|
||||
pnpm install
|
||||
```
|
||||
|
||||
## Development Server
|
||||
|
||||
Start the development server on `http://localhost:3000`
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
|
||||
## Production
|
||||
|
||||
Build the application for production:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
Locally preview production build:
|
||||
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
Check out the [deployment documentation](https://nuxt.com/docs/getting-started/deployment) for more information.
|
@ -1,5 +0,0 @@
|
||||
<template>
|
||||
<div>
|
||||
<NuxtWelcome />
|
||||
</div>
|
||||
</template>
|
@ -1,4 +0,0 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
|
||||
})
|
3
packages/2-nuxtConfig/README.md
Normal file
3
packages/2-nuxtConfig/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Nuxt Config
|
||||
|
||||
|
11
packages/2-nuxtConfig/app.vue
Normal file
11
packages/2-nuxtConfig/app.vue
Normal file
@ -0,0 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
{{ config }}
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
let config = useRuntimeConfig();
|
||||
onMounted(() => {
|
||||
console.log(config);
|
||||
});
|
||||
</script>
|
9
packages/2-nuxtConfig/nuxt.config.ts
Normal file
9
packages/2-nuxtConfig/nuxt.config.ts
Normal file
@ -0,0 +1,9 @@
|
||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||
export default defineNuxtConfig({
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
token: "123",
|
||||
footer: "copyright2023"
|
||||
},
|
||||
},
|
||||
})
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@ -21,6 +21,15 @@ importers:
|
||||
specifier: ^3.4.3
|
||||
version: 3.4.3(@types/node@18.0.0)
|
||||
|
||||
packages/2-nuxtConfig:
|
||||
devDependencies:
|
||||
'@types/node':
|
||||
specifier: ^18
|
||||
version: 18.0.0
|
||||
nuxt:
|
||||
specifier: ^3.4.3
|
||||
version: 3.4.3(@types/node@18.0.0)
|
||||
|
||||
packages:
|
||||
|
||||
/@ampproject/remapping@2.2.1:
|
||||
|
Loading…
Reference in New Issue
Block a user