Skip to content

Commit

Permalink
Subdomain (#15)
Browse files Browse the repository at this point in the history
* Subdomain (29f6c67)
* 0.1.5 (25a3b33)
  • Loading branch information
adamelliotfields committed May 7, 2024
1 parent 1fbd3b8 commit 95f67f4
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 22 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ ENV PATH "/home/node/.bun/bin:${PATH}"
# set node user/group
USER 1000:1000

# install bun v1.0.23
RUN curl -fsSL https://bun.sh/install | bash -s 'bun-v1.0.23'

# workdir
WORKDIR /workspaces/chat

# install bun
RUN curl -fsSL https://bun.sh/install | bash

# ports
EXPOSE 5173
12 changes: 3 additions & 9 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
{
"name": "chat",
"build": {
"dockerfile": "Dockerfile"
},
"build": { "dockerfile": "Dockerfile" },
"postCreateCommand": "bun install --frozen-lockfile",
"waitFor": "postCreateCommand",
"forwardPorts": [5173],
"customizations": {
"vscode": {
"extensions": ["biomejs.biome", "bradlc.vscode-tailwindcss"]
}
},
"containerEnv": {
"GH_TOKEN": "${localEnv:GH_TOKEN}"
}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: '1.0.23'
- name: Install deps
run: bun install --frozen-lockfile
- name: Lint with Biome
Expand Down
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"editor.quickSuggestions": { "strings": "on" },
"editor.rulers": [88],

// tailwind
"editor.quickSuggestions": { "strings": "on" },
"files.associations": { "*.css": "tailwindcss" },
"tailwindCSS.classAttributes": ["class", "className", "classes", "classNames"],

Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"ignore": ["dist", "node_modules"]
"ignore": [".devcontainer/**/*.json", ".vscode/**/*.json", "dist", "node_modules"]
},
"formatter": {
"enabled": true,
Expand Down
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@
<meta name="description" content="Chat with LLMs running in your browser." />
<meta name="theme-color" content="#000000" />
<meta name="robots" content="index, follow" />
<!-- <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> -->
<link rel="icon" href="https://aef.me/favicon.ico" />
<link rel="canonical" href="https://aef.me/chat/" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="canonical" href="https://chat.aef.me" />
<body style="/* neutral-50 */ background-color: #fafafa; height: 100%;">
<div id="root" style="height: 100%;">
<!-- https://tobiasahlin.com/spinkit -->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "chat",
"version": "0.1.4",
"version": "0.1.5",
"type": "module",
"scripts": {
"start": "vite",
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import react from '@vitejs/plugin-react-swc'
import { defineConfig, splitVendorChunkPlugin } from 'vite'

export default defineConfig(({ mode }) => ({
base: mode === 'production' ? '/chat/' : '/',
export default defineConfig(() => ({
base: '/',
build: {
chunkSizeWarningLimit: 5120,
target: 'esnext',
Expand Down

0 comments on commit 95f67f4

Please sign in to comment.