Skip to content

Commit

Permalink
use 8.1 base
Browse files Browse the repository at this point in the history
ts

format
  • Loading branch information
pjaudiomv committed Jun 13, 2024
1 parent 61123cc commit 6c4165d
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 22 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bmltenabled/bmlt-root-server-base:latest
FROM bmltenabled/bmlt-root-server-base:8.1

COPY build/bmlt-root-server.zip /tmp/bmlt-root-server.zip
RUN \
Expand Down
3 changes: 3 additions & 0 deletions src/resources/js/App.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script>
import BmltServer from './lib/BmltServer.svelte';
import './css/main.scss';
export const ssr = false;
</script>

<svelte:head>
Expand All @@ -9,6 +11,7 @@
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="icon" href="favicon.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
<title>BMLT Root Server</title>
</svelte:head>

Expand Down
2 changes: 2 additions & 0 deletions src/resources/js/main.js → src/resources/js/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import App from './App.svelte';

export const ssr = false;

const app = new App({
target: document.body
});
Expand Down
2 changes: 2 additions & 0 deletions src/resources/js/lib/BmltServer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import { theme } from '../stores/themeStore';
import ThemeSwitcher from '../components/ThemeSwitcher.svelte';
export const ssr = false;
if (typeof window !== 'undefined') {
const savedTheme = window.localStorage.getItem('theme');
if (savedTheme) {
Expand Down
1 change: 1 addition & 0 deletions src/resources/js/routes/+layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ssr = false;
1 change: 1 addition & 0 deletions src/resources/js/routes/+page.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ssr = false;
File renamed without changes.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion src/resources/views/frontend.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
};
</script>

@vite('resources/js/main.js')
@vite('resources/js/app.ts')
</head>
<body>
<div id="root"></div>
Expand Down
11 changes: 8 additions & 3 deletions src/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@ import { defineConfig } from 'vite';

export default defineConfig({
plugins: [
sveltekit(),
laravel({
input: ['resources/js/main.js'],
input: ['resources/js/app.ts'],
publicDirectory: 'public',
buildDirectory: 'public/build',
refresh: true
}),
sveltekit()
})
],
resolve: {
alias: {
$components: '/resources/js/components',
$lib: '/resources/js/lib'
}
},
build: {
minify: false
},
server: {
cors: true, // Enable CORS
fs: {
Expand Down
32 changes: 16 additions & 16 deletions terraform/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion terraform/ecs-service-bmlt-unstable.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ resource "aws_ecs_task_definition" "bmlt_unstable" {
]
links = ["bmlt-db"]
workingDirectory = "/tmp"
image = "bmltenabled/bmlt-root-server:latest"
image = "bmltenabled/bmlt-root-server:unstable"
repositoryCredentials = {
credentialsParameter = data.aws_secretsmanager_secret.docker.arn
}
Expand Down

0 comments on commit 6c4165d

Please sign in to comment.