- API serverは、複数サイトに対応しています。
- ローカル、sveltekit CMS追加手順となります。
- /login を開きます
import { component$, useSignal, useStore, useComputed$, useTask$, $ } from '@builder.io/qwik'; | |
import './app.css' | |
// | |
const dataItems = [ | |
{id:1 , title: "title_1"}, | |
{id:2 , title: "title_2"}, | |
{id:3 , title: "title_3"}, | |
]; | |
// |
VITE_API_KEY="123" | |
VITE_API_URL=http://localhost:4000 |
VITE_API_URL="http://localhost:4000" | |
VITE_API_KEY="" |
import { defineConfig } from 'vite' | |
import { svelte } from '@sveltejs/vite-plugin-svelte' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [svelte()], | |
build: { | |
lib: { | |
entry: [ | |
'./src/main.ts', |
import { defineConfig } from 'vite' | |
import vue from '@vitejs/plugin-vue' | |
// https://vitejs.dev/config/ | |
export default defineConfig({ | |
plugins: [vue()], | |
define: { | |
"process.env.NODE_ENV": '"production"', | |
}, | |
build: { |
const log4js = require("log4js"); | |
let dt = Date.now(); | |
let LOG_FILE_NAME = "log_" + dt; | |
console.log("dt=", dt); | |
// | |
log4js.configure({ | |
appenders: { | |
cheese: { type: "file", filename: "cheese.log" } , | |
app: { type: "file", filename: `log/${LOG_FILE_NAME}.log` } |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/preact.umd.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/htm/3.0.4/htm.min.js"></script> | |
<script src="https://cdn.tailwindcss.com/3.3.2"></script> | |
<title>Custom Bootstrap Alerts Position</title> | |
</head> |
--- | |
export interface Props { | |
title: string; | |
} | |
const { title } = Astro.props; | |
--- | |
<!DOCTYPE html> | |
<html lang="en"> |
// This is your Prisma schema file, | |
// learn more about it in the docs: https://pris.ly/d/prisma-schema | |
generator client { | |
provider = "prisma-client-js" | |
} | |
datasource db { | |
provider = "sqlite" | |
url = env("DATABASE_URL") |